Lors de la tentative de génération d'un code de proxy pour ce wsdl file (à partir d'un service Web ASMX), WsdlImporter (et svcutil) signale une erreur. Je pensais que WCF est totalement rétrocompatible avec les services Web ASMX? S'il vous plaît aiderErreur WsdlImporter lors de l'importation d'un fichier wsdl à partir d'un service Web ASMX
Ci-dessous est une sortie de svcutil (je reçois les mêmes erreurs à l'aide 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']
Salut Darin merci pour la réponse. Malheureusement, je n'ai pas accès au code. – user20155