Building a SOAP Server
It couldn’t be easier to get NuSOAP up and running on your server; just visit sourceforge.net/projects/nusoap, download and unzip the package in your web root direoctry, and you’re done. To use the library just include the
nusoap.php file in your code.
For the server, let’s say we’ve been given the task of building a service to provide a listing of products given a product category. The server should read in the category from a request, look up any products that match the category, and return the list to the user in a CSV format.
Create a file in your web root named
productlist.php with the following code:
Building a SOAP Client
Then create productlistclient.php as follows