在php中调用Web服务

时间:2011-07-08 08:13:09

标签: php web-services soapui

我必须使用php调用web服务。我所拥有的唯一信息是SoapUI的示例调用,如下所示:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://somewhere.at/">
  <soapenv:Header/>
  <soapenv:Body>
    <web:authenticate>
      <user-name>mmann</user-name>
      <password>787cef7a4e1ff51fcc920ad62aaa6df2df99a4bb</password>
    </web:authenticate>
  </soapenv:Body>
</soapenv:Envelope>

如何使用php进行类似的调用?

非常感谢!!!

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

您可以使用nusoap。并使用soapui来测试Web服务本身。 希望这有帮助