Prakash Babia
Prakash Babia

Reputation: 31

How to Fetch Function List from wsdl with soap client in php

I have one http: path and one wsdl file. but it is not work in local ip and server ip. it is work only mobile. i want to check this webservice is working is not working. If working, i want to get function list from wsdl. How it?

Plz help me as soon as possible.

Upvotes: 1

Views: 11608

Answers (2)

erik
erik

Reputation: 63

You can use the BubbleSOAP php script:

try{
   $client = new BubbleSOAP($wsdl_url);
   $list=$client->__getFunctionsNames();
   foreach($list as $name){
      echo $name;
   }
}
catch(Exception $e){
   echo $e->getMessage();
}

https://github.com/andreaval/Bubble-SOAP

Upvotes: 1

Doug
Doug

Reputation: 81

This will list the available functions from the service:

$client = new SoapClient('http://hostsite');
var_dump($client->__getFunctions());

Upvotes: 8

Related Questions