how to do SOAP request in PHP code
My website is written in PHP. How should I write the PHP code to send a SOAP request to another server and parse the response.
开发者_高级运维The link below is the server who can accept the request. http://gisdata.usgs.gov/XMLWebServices2/Elevation_Service.asmx?op=getElevation
Thanks.
You have options.
If it's available on your server, there's a native SoapClient extension for php. You could use that.
Or, you might prefer the Zend_Soap library, which is part of the Zend Framework, but can easily be used independently.
There venerable nuSoap library is an old standby.
精彩评论