简体   繁体   English

如何为特定WSDL生成WCF

[英]How To generate WCF for specific WSDL

We have to call a specific soap webservice and are not able to generate the needed .NET Proxy classes. 我们必须调用特定的soap webservice并且无法生成所需的.NET代理类。 We tried to do it with the svcutil.exe as well as simply add the service reference in visual studio but we get the same errors. 我们尝试使用svcutil.exe来完成它,并且只是在visual studio中添加服务引用,但是我们得到了相同的错误。 We just don't know what's wrong with this wsdl. 我们只是不知道这个wsdl有什么问题。 The errors are: 错误是:

Custom tool warning: Cannot import wsdl:portTypeDetail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporterError: These members may not be derived.XPath to Error Source: //wsdl:definitions[@targetNamespace=' http://localhost:8000/ibis/ws/Tasklist ']/wsdl:portType[@name='TaskControl_- WSC -_MainPortType'] 自定义工具警告:无法导入wsdl:portTypeDetail:运行WSDL导入扩展时抛出异常:System.ServiceModel.Description.XmlSerializerMessageContractImporterError:这些成员可能无法派生.XPath到错误源:// wsdl:definitions [@ targetNamespace = ' http:// localhost:8000 / ibis / ws / Tasklist '] / wsdl:portType [@ name ='TaskControl_- WSC -_MainPortType']

Custom tool warning: Cannot import wsdl:bindingDetail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.XPath to wsdl:portType: //wsdl:definitions[@targetNamespace=' http://localhost:8000/ibis/ws/Tasklist ']/wsdl:portType[@name='TaskControl_- WSC - MainPortType']XPath to Error Source: //wsdl:definitions[@targetNamespace=' http://localhost:8000/ibis/ws/Tasklist ']/wsdl:binding[@name='TaskControl - WSC -_MainBinding'] 自定义工具警告:无法导入wsdl:bindingDetail:导入wsdl:portType时,wsdl:binding依赖于.xPath到wsdl:portType:// wsdl:definitions [@ targetNamespace =' http:// localhost: 8000 / ibis / ws / Tasklist '] / wsdl:portType [@ name ='TaskControl_- WSC - MainPortType'] XPath to Error Source:// wsdl:definitions [@ targetNamespace =' http:// localhost:8000 / ibis / ws / Tasklist '] / wsdl:binding [@ name ='TaskControl - WSC -_MainBinding']

Custom tool warning: Cannot import wsdl:portDetail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.XPath to wsdl:binding: //wsdl:definitions[@targetNamespace=' http://localhost:8000/ibis/ws/Tasklist ']/wsdl:binding[@name='TaskControl_- WSC -_MainBinding']XPath to Error Source: //wsdl:definitions[@targetNamespace=' http://localhost:8000/ibis/ws/Tasklist ']/wsdl:service[@name='externalinterfacetasks_v10']/wsdl:port[@name='TasklistPort'] 自定义工具警告:无法导入wsdl:portDetail:导入wsdl:binding时wsdl:port依赖于.xPath到wsdl:binding:// wsdl:definitions [@ targetNamespace =' http:// localhost: 8000 / ibis / ws / Tasklist '] / wsdl:binding [@ name ='TaskControl_- WSC -_MainBinding'] XPath to Error Source:// wsdl:definitions [@ targetNamespace =' http:// localhost:8000 / ibis / ws / Tasklist '] / wsdl:service [@ name ='externalinterfacetasks_v10'] / wsdl:port [@ name ='TasklistPort']

SoapUi seems to have no problems with it. SoapUi似乎没有任何问题。

The link to the problematic wsdl: https://drive.google.com/open?id=0B0PhgwgtgEbRX3U3c05WRW5LbU0 有问题的wsdl链接: https ://drive.google.com/open id = 0B0PhgwgtgEbRX3U3c05WRW5LbU0

Does anybody have an idea what the problem is? 有人知道问题是什么吗?

The Comment from Yawar Murtaza is the solution: 来自Yawar Murtaza的评论是解决方案:

We just renamed "Parameters" to "Parameters1" and it worked. 我们刚刚将“参数”重命名为“Parameters1”并且它有效。

Thank you ! 谢谢 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM