SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://***.***.***.***:****/mpserver/services/CykProcService' : Extra content at the end of the document in /test2.php:47 Stack trace: #0 /test2.php
上面是报错
$client = new SoapClient("http://***.***.***.***:****/mpserver/services/CykProcService");
print_r($client->__getFunctions());
上面是我的代码
2016年10月11日16:21:45 问题解决了
原来,php调用soap接口,是不能直接用原来的url的,原因我不知道,我看了接口方给我看的java代码,就是直接用的原来的url。
php 需要在链接最后加上
?wsdl
也就是:http://***.***.***.***:****/mpserver/services/CykProcService?wsdl