简体   繁体   中英

WSDL: Error to Add Service Reference C# on VS 2010

I get this error when i try to include the reference of the WSDL service: Link

The document at the url http://www.comercioweb.com.br/ws/servidor.wsdl was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be and its namespace should be ' http://www.w3.org/2001/XMLSchema '.'. - Report from 'DISCO Document' is 'Discovery document at the URL http://www.comercioweb.com.br/ws/servidor.wsdl could not be found.'. - The document format is not recognized. - Report from 'WSDL Document' is 'There is an error in XML document (8, 33).'. - Namespace prefix 's' is not defined. Metadata contains a reference that cannot be resolved: ' http://www.comercioweb.com.br/ws/servidor.wsdl '. The remote server returned an unexpected response: (417) Expectation failed. The remote server returned an error: (417) Expectation failed. If the service is defined in the current solution, try building the solution and adding the service reference again.

Somebody know why this error? Delphi 7 import it very well...and www.wsdl-analyzer.com say zero errors on wsdl.

WSDL(xml)生成不正确...由于某种原因,Delphi无法检测到它。.但是在运行时,它给了我一个错误...在c#/ visual studio上,当我创建服务引用时出现了错误。

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