Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in

微笑、不失礼 提交于 2020-01-24 12:17:43

问题


i used gSOAP (the C++ Toolkit) to make the SOAP server and i suppose to use php send a getMobile request to soap client and print a resultant phone number

<?php
$client = new SoapClient("test.wsdl",array('trace'=>true, 'exceptions'=>true, 'user' => 'Grace' ));
$arrParameters_Login = array('user' => 'Grace');
//$arrParameters_Login = array('complexType' => (array('sequence' => (array('user' => 'Grace')))));  
$objLogin =  $client->getMobile($arrParameters_Login); 
die;
?>

error when i load php file with xampp on browser

Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document  
in C:\xampp\htdocs\soaptest\server\t.php:9 Stack trace: #0 C:\xampp\htdocs\soaptest
\server\t.php(9): SoapClient->__call('getMobile', Array) #1 C:\xampp\htdocs\soaptest
\server\t.php(9): SoapClient->getMobile(Array) #2 {main} thrown in C:\xampp\htdocs
\soaptest\server\t.php on line 9

I've searched around for so long but couldnt find a way to solve my problem..any idea? is it something to do with my wsdl file? or location?

<service name="test">
 <documentation>gSOAP 2.8.3 generated service definition</documentation>
 <port name="test" binding="tns:test">
  <SOAP:address location="http://192.168.82.52:8080"/>
 </port>
</service>

来源:https://stackoverflow.com/questions/7911716/fatal-error-uncaught-soapfault-exception-client-looks-like-we-got-no-xml-doc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!