【问题标题】:WSDL unable to import bindingWSDL 无法导入绑定
【发布时间】:2010-05-11 19:11:51
【问题描述】:

我无法让 WSDL 工作,它给了我这个错误:

C:\Program Files\Microsoft.NET\SDK\v2.0\Bin>wsdl.exe /username:NOTGIVINGU/password:THEPASSWORD /v /parsableerrors http://www.stoysnet.com/stn_mfg/link/soap.php?wsdl

WSDL: error WSDL1: Unable to import binding 'Product' from namespace 'http://www.stoysnet.com/stn_mfg/link/soap.php?wsdl'.
      Unable to import operation 'exists'.
      The datatype 'http://www.stoysnet.com/stn_mfg/link/soap.php?wsdl:IDType' is missing.

WSDL 位于:

http://www.stoysnet.com//stn_mfg/link/soap.php?wsdl

有什么想法吗?

【问题讨论】:

    标签: xml wsdl asmx


    【解决方案1】:

    几点说明:

    1. 编写此 WSDL 的人不了解 XML 名称空间。在 XML 命名空间中包含查询字符串 ("?wsdl") 是没有意义的。
    2. 您收到的错误消息完全正确。 IDType 是元素的名称,而不是类型的名称。然而它在一条消息中被引用:

      <message name="ID">
        <part name="ID" type="tns:IDType" /> 
      </message>
      

    换言之,此 WSDL 已损坏,无法工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-27
      • 1970-01-01
      • 1970-01-01
      • 2021-07-02
      • 1970-01-01
      • 2019-02-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多