如何摆脱“未捕获的SoapFault异常:[客户端]看起来我们没有XML文档..."错误 [英] How to get rid of "Uncaught SoapFault exception: [Client] looks like we got no XML document in..." error
问题描述
我正在尝试在服务器端使用nusoap为动态站点开发业务逻辑(因为我需要wsdls,而PHP SOAP扩展不能生成wsdls),而在客户端使用PHP SOAP扩展.
I'm trying to develop business logic for a dynamic site using nusoap on server side (because I need wsdls, and PHP SOAP extension can't generate wsdls), and PHP SOAP extenstion on client side.
但是,我什至无法正确登录和getRole函数.当我尝试调用客户端时,出现以下消息
However, I can't get even login and getRole functions right. When i try to invoke client, I get following message
Uncaught SoapFault exception: [Client] looks like we got no XML document in [some paths]...
WSDL确实存在于服务器端,客户端确实读取了它(当我为wsdl输入错误的url时,我得到一个错误).
Wsdl does exist on server side, and client does read it (when I put wrong url for wsdl, I get an error).
任何人都可以帮忙吗?
推荐答案
您的客户端似乎收到了一些无效的XML-WSDL本身或服务器返回的响应.尝试将trace
选项设置为TRUE来调用客户端,并通过 __getLastRequest()
和 __getLastResponse()
方法.
It looks like your client receives some invalid XML - either the WSDL itself or the response returned by the server. Try to invoke the client with the trace
option set to TRUE and check the actual XML send/received via the __getLastRequest()
and __getLastResponse()
methods.
这篇关于如何摆脱“未捕获的SoapFault异常:[客户端]看起来我们没有XML文档..."错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!