tags:

views:

27

answers:

1

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.

+1  A: 

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.

timdev