SOAP 服务错误
当我将网络服务文件上传到实时服务器时,它不起作用。它正在本地主机上运行。我该如何解决这个问题?
错误消息
致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:正在解析 WSDL:无法加载 'http://openinvite.biz/iphoneservice/server2.php':过早结束 标签 html 第 2 行中的数据 D:\Hosting\7340680\html\iphoneservice\test.php:102 堆栈跟踪: #0 D:\ Hosting \ 7340680 \ html \ iphoneservice \ test.php(102): SoapClient->SoapClient('http://fomlatong.com/server.php') #1 {main} 扔在 D:\Hosting\7340680\html\iphoneservice\test.php 第 102 行
When I upload my webservice files to a live server it does not work. It was working on localhost. How can I fix this problem?
Error message
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from
'http://openinvite.biz/iphoneservice/server2.php' : Premature end of
data in tag html line 2 in
D:\Hosting\7340680\html\iphoneservice\test.php:102 Stack trace: #0
D:\Hosting\7340680\html\iphoneservice\test.php(102):
SoapClient->SoapClient('http://fomlatong.com/server.php') #1 {main}
thrown in D:\Hosting\7340680\html\iphoneservice\test.php on line 102
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能应该使用 WSDL 版本而不是 HTML 版本。
将您的网址更改为 http://openinvite.biz/iphoneservice/server2.php?wsdl
该服务的方法列表似乎是
我不知道为什么你期望有一个
call()
方法。You should probably use the WSDL version as opposed to the HTML one.
Change your URL to http://openinvite.biz/iphoneservice/server2.php?wsdl
The list of methods for that service appears to be
I'm not sure why you expect there to be a
call()
method.使用“nusoap_client”而不是使用“soapclient”
Instead of using "soapclient" use "nusoap_client"