Call to web service in php
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
精彩评论