Search code examples
phpxmlweb-servicessoapwsdl

Web-service in php


newbie to webservice concept! I did find a ISBN webservice online and am trying to figure out how to call that service in php and what response i will get back. When i looked at it's wsdl file, i couldn't understand as it had a lot of confusing tags in it.

Question is, how do i figure out the (methods & parameters to those methods) provided by the webservice by just looking at it's wsdl file. Here is the link http://www.webservicex.net/isbn.asmx to the service.

Any example request to this service would be a great start for me to understand things better on making webservice calls by just looking at it's wsdl file.


Solution

  • One solution to see methods of Soap WebService is:

    $client = new SoapClient('http://www.webservicex.net/isbn.asmx?wsdl');
    var_dump($client->__getFunctions());