开发者

Call to web service in php

开发者 https://www.devze.com 2023-03-18 00:33 出处:网络
I have to do a call to a webservice using php. The only information that I have is an example call for SoapUI like this:

I have to do a call to a webservice using php. The only information that I have is an example call for SoapUI like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://somewhere.at/"&开发者_如何学Cgt;
  <soapenv:Header/>
  <soapenv:Body>
    <web:authenticate>
      <user-name>mmann</user-name>
      <password>787cef7a4e1ff51fcc920ad62aaa6df2df99a4bb</password>
    </web:authenticate>
  </soapenv:Body>
</soapenv:Envelope>

How can I do a similar call using php?

Thank you so much!!!


Check out this:

  • Webservice call from PHP – wsdl2php makes it simple
  • SOAP (php.net)


you can use nusoap. and use soapui to test the webservice itself. hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号