2017-03-01 5 views
1

Wir müssen einen bestimmten Soap-Webdienst aufrufen und sind nicht in der Lage, die erforderlichen .NET-Proxy-Klassen zu generieren. Wir haben versucht, es mit der svcutil.exe zu tun, und einfach die Service-Referenz in Visual Studio hinzufügen, aber wir bekommen die gleichen Fehler. Wir wissen einfach nicht, was mit dieser WSDL los ist. Die Fehler sind:So generieren Sie WCF für bestimmte WSDL

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 scheint keine Probleme damit zu haben.

Der Link auf die problematische wsdl: https://drive.google.com/open?id=0B0PhgwgtgEbRX3U3c05WRW5LbU0

Hat jemand eine Idee, was das Problem ist?

+1

http://stackoverflow.com/questions/21682947/svcutil-does-not-generate-soap-client –

+0

Wenn Sie die Referenz (.dll) in der Clientanwendung mithilfe von Visual Studio hinzufügen können, stellen Sie sicher, dass Sie die Referenz hinzufügen zu den Datenelement- und Datenvertrags-DLLs, wenn sie in einer separaten Assembly definiert sind. Erstellen Sie eine Proxy-Klasse, indem Sie ClientBase erweitern und die Client-Konfiguration in C# oder in der Datei app.config/web.config einrichten. –

+0

Mögliches Duplikat von [svcutil erzeugt keinen Soap-Client] (http://stackoverflow.com/questions/21682947/svcutil-does-not-generate-soap-client) –

Antwort

Verwandte Themen