【发布时间】:2010-10-29 05:01:15
【问题描述】:
当尝试为此 wsdl file(来自 ASMX Web 服务)生成代理代码时,WsdlImporter(和 svcutil)报告错误。我认为 WCF 完全向后兼容 ASMX Web 服务?请帮忙
下面是 svcutil 的输出(我使用 WsdlImporter 得到了同样的错误)
Microsoft (R) 服务模型元数据工具 [Microsoft (R) Windows (R) Communication Foundation,版本 3.0.4506.648] 版权所有 (c) 微软公司。版权所有。 警告:来自命名空间“http://sch”的可选 WSDL 扩展元素“标头” emas.xmlsoap.org/wsdl/soap/' 未处理。 XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS 服务/财务/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'ProcessNonRefPayment']/wsdl:fault[@name='fault'] 警告:来自命名空间“http://sch”的可选 WSDL 扩展元素“标头” emas.xmlsoap.org/wsdl/soap/' 未处理。 XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS 服务/财务/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'ProcessRefPayment']/wsdl:fault[@name='fault'] 警告:来自命名空间“http://sch”的可选 WSDL 扩展元素“标头” emas.xmlsoap.org/wsdl/soap/' 未处理。 XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS 服务/财务/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'SearchPayments']/wsdl:fault[@name='fault'] 警告:来自命名空间“http://sch”的可选 WSDL 扩展元素“标头” emas.xmlsoap.org/wsdl/soap/' 未处理。 XPath: //wsdl:definitions[@targetNamespace='http://mycompany.com/Enterprise/WebS 服务/财务/']/wsdl:binding[@name='FinanceServiceSoap']/wsdl:operation[@name= 'GetPayments']/wsdl:fault[@name='fault'] **错误:无法导入 wsdl:binding** 详细信息:给定的键不在字典中。 错误源的 XPath://wsdl:definitions[@targetNamespace='http://mycompany.com /Enterprise/WebService/Finance/']/wsdl:binding[@name='FinanceServiceSoap12'] **错误:无法导入 wsdl:port** 详细信息:导入 wsdl:binding 时出错,该 wsdl:port 是依赖的 继续。 XPath 到 wsdl:binding: //wsdl:definitions[@targetNamespace='http://mycompany.com /Enterprise/WebService/Finance/']/wsdl:binding[@name='FinanceServiceSoap12'] 错误源的 XPath://wsdl:definitions[@targetNamespace='http://mycompany.com /Enterprise/WebService/Finance/']/wsdl:service[@name='FinanceService']/wsdl:port [@name='FinanceServiceSoap12']【问题讨论】:
标签: wcf