Beim Versuch, einen Proxycode für diese wsdl file (von einem ASMX-Webdienst) zu generieren, meldet WsdlImporter (und Svcutil) einen Fehler. Ich dachte, WCF ist vollständig abwärtskompatibel mit ASMX-Webdiensten? Bitte helfenWsdlImporter Fehler beim Importieren einer WSDL von einem ASMX-Webdienst
Im Folgenden eine Ausgabe von svcutil ist (ich die gleichen Fehler erhalten mit WsdlImporter)
Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648] Copyright (c) Microsoft Corporation. All rights reserved. Warning: The optional WSDL extension element 'header' from namespace 'http://sch emas.xmlsoap.org/wsdl/soap/' was not handled. XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS ervice/Finance/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'ProcessNonRefPayment']/wsdl:fault[@name='fault'] Warning: The optional WSDL extension element 'header' from namespace 'http://sch emas.xmlsoap.org/wsdl/soap/' was not handled. XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS ervice/Finance/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'ProcessRefPayment']/wsdl:fault[@name='fault'] Warning: The optional WSDL extension element 'header' from namespace 'http://sch emas.xmlsoap.org/wsdl/soap/' was not handled. XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS ervice/Finance/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'SearchPayments']/wsdl:fault[@name='fault'] Warning: The optional WSDL extension element 'header' from namespace 'http://sch emas.xmlsoap.org/wsdl/soap/' was not handled. XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS ervice/Finance/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'GetPayments']/wsdl:fault[@name='fault'] **Error: Cannot import wsdl:binding** Detail: The given key was not present in the dictionary. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://mycompany.com /Enterprise/WebService/Finance/']/wsdl:binding[@name='FinanceServiceSoap12'] **Error: Cannot import wsdl:port** Detail: There was an error importing a wsdl:binding that the wsdl:port is depend ent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://mycompany.com /Enterprise/WebService/Finance/']/wsdl:binding[@name='FinanceServiceSoap12'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://mycompany.com /Enterprise/WebService/Finance/']/wsdl:service[@name='FinanceService']/wsdl:port [@name='FinanceServiceSoap12']
Hallo Danke, danke für die Antwort. Leider habe ich keinen Zugriff auf den Code. – user20155