简体   繁体   中英

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. 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. We just don't know what's wrong with this 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']

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']

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']

SoapUi seems to have no problems with it.

The link to the problematic 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:

We just renamed "Parameters" to "Parameters1" and it worked.

Thank you !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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