自定义工具错误消耗webService

时间:2014-05-08 20:26:15

标签: .net web-services visual-studio

我试图从第三方电话提供商那里购买网络服务,来自visual studio的customTool给我带来了错误。

我搜索了很多并尝试了所提供的所有解决方案,但仍然不幸运。)

Thats the url to the service

错误是:

Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='urn:TelebroadWebServices']/wsdl:portType[@name='TelebroadWebServicesPortType']
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:TelebroadWebServices']/wsdl:binding[@name='TelebroadWebServicesBinding']    ....\Reference.svcmap

更新 我尝试使用soapUI生成.net类,我收到以下错误:

Running .NET wsdl.exe
directory: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin
command: [cmd.exe, /C, wsdl.exe, /nologo, /verbose, /namespace:Telebroad, /out:C:\TempPc, /protocol:SOAP, /language:VB, https://webserv.telebroad.com/api/v11/index.php?wsdl]
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2706: A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for the use attribute in all soapbind:body, soapbind:fault, soapbind:header and soapbind:headerfault elements.

...

If you would like more help, please type "wsdl /?".
Error: Unable to import binding 'TelebroadWebServicesBinding' from namespace 'urn:TelebroadWebServices'.
  - Unable to import operation 'get_call_history'.
  - The datatype 'http://schemas.xmlsoap.org/wsdl/:call_history_item' is missing.

1 个答案:

答案 0 :(得分:3)

我已经联系了该脚本的开发人员,他们能够以wsdl文件中可见项目的方式修改wdsl。

我在这里分享这些信息给其他人阅读我的问题,如果你尝试了所有其他修复但仍然没有运气,那么只需向webService的所有者发送电子邮件,他们应该能够修复它你...