【问题标题】:SOAP service errorSOAP 服务错误
【发布时间】:2011-10-28 05:37:00
【问题描述】:

当我将我的网络服务文件上传到实时服务器时,它不起作用。它在本地主机上工作。我该如何解决这个问题?

错误信息

致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR: Parsing 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} 在第 102 行的 D:\Hosting\7340680\html\iphoneservice\test.php 中抛出

【问题讨论】:

    标签: php web-services soap nusoap


    【解决方案1】:

    您可能应该使用 WSDL 版本而不是 HTML 版本。

    将您的网址更改为http://openinvite.biz/iphoneservice/server2.php?wsdl

    该服务的方法列表似乎是

    • 同步事件
    • getEvents
    • getAllEvents
    • 搜索地点
    • rsvpEvent
    • 按城市搜索
    • 编辑事件

    我不确定你为什么期望有一个call() 方法。

    【讨论】:

    • 在末尾添加 wsdl。我收到此错误:致命错误:未捕获的 SoapFault 异常:[Client] Function ("call") is not a valid method for this service in D:\Hosting\7340680\html\iphoneservice\test.php:116 Stack trace: # 0 D:\Hosting\7340680\html\iphoneservice\test.php(116): SoapClient->__call('call', Array) #1 D:\Hosting\7340680\html\iphoneservice\test.php(116): SoapClient->call('syncvents', Array, 'uri:syncvents', 'uri:syncvents/s...') #2 {main} 在 D:\Hosting\7340680\html\iphoneservice\test.php 中抛出第 116 行
    • @Chintoo 查看我的更新答案。作为该服务的一部分,似乎没有 call 方法
    • 我知道的方法都是我自己创造的。我将这些方法称为:$client->call('syncvents', // 方法名称数组('name' => $inpdata,'sender'=> 'sender2'), // 输入参数 'uri:syncvents' , // 命名空间 'uri:syncvents/syncvents' // SOAPAction );
    • 明显的问题,但很难发现。谢谢;)
    【解决方案2】:

    不要使用“soapclient”,而是使用“nusoap_client”

    【讨论】:

      猜你喜欢
      • 2018-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多