开发者

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 m开发者_开发技巧obile. 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.


This will list the available functions from the service:

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜