致命错误:未捕获的SoapFault异常:[客户端]看起来我们没有XML文档

时间:2011-10-27 04:30:11

标签: php soap

我使用gSOAP(C ++ Toolkit)制作SOAP服务器,我想使用php向soap客户端发送getMobile请求并打印生成的电话号码

<?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;
?>
在浏览器上用xampp加载php文件时出现

错误

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

我已经搜索了这么久但却无法找到解决问题的方法。任何想法?它与我的wsdl文件有关吗?还是位置?

<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>

0 个答案:

没有答案
相关问题