如何在php中将字符串转换为soap消息并将其发送?

时间:2018-06-26 10:05:11

标签: javascript php html web-services soap

我有这个html代码-

<head>
  <script type="text/javascript">

  function diffid(){
if     (document.getElementById('diff').checked) {
        document.getElementById('show').style.display = 'block';
    }
    else {
        document.getElementById('show').style.display = 'none';
    }
  }

  </script>
</head>
<body>
  <br><br><br><br>
  <form action="soap_msg.php" id='pass_reset' method='post'>
    <input id='same_id' type='radio' name='choice' value='exixting' 
onclick="javascript:diffid();">
    Use logged in user id? <br>
    <h6>OR</h6>
    <input id='diff' type='radio' name='choice' value='diff_id' 
onclick="javascript:diffid();">
    Enter different UserID <br/><br>
    <div id="show" style="display:none">
    UserID<br>
    <input name='diff_id' type="text"><br><br>
  </div>
    <input type="submit" value="Submit">  <input type="reset">
  </form>

</body>

这是一个简单的形式,如附件所示。 1  当按下提交按钮时,将触发一个php文件。

在此php文件中,我想在将用户名封装在一条肥皂消息中之后,将其发送到Web服务,并接收来自Web服务的响应(也肥皂消息)。

如何实施?我是Web服务的初学者,非常困惑。 请帮助我。

我只想在php文件中做所有事情。但是,如果还有其他更简单的方法可以完成全部操作,请提出建议。

0 个答案:

没有答案