[英]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 当我尝试包括WSDL服务的引用时出现此错误: 链接
The document at the url http://www.comercioweb.com.br/ws/servidor.wsdl was not recognized as a known document type.
网址为http://www.comercioweb.com.br/ws/servidor.wsdl的文档未被识别为已知的文档类型。 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 '.'.
每种已知类型的错误消息都可以帮助您解决问题:-来自“ XML Schema”的报告为“ W3C XML Schema的根元素应为,其命名空间应为” 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.'.
-“ DISCO文档”中的报告是“找不到URL http://www.comercioweb.com.br/ws/servidor.wsdl上的发现文档”。 - The document format is not recognized.
-无法识别文件格式。 - Report from 'WSDL Document' is 'There is an error in XML document (8, 33).'.
-来自“ WSDL文档”的报告为“ XML文档中存在错误(8,33)。”。 - Namespace prefix 's' is not defined.
-命名空间前缀“ s”未定义。 Metadata contains a reference that cannot be resolved: ' http://www.comercioweb.com.br/ws/servidor.wsdl '.
元数据包含无法解析的参考:“ http://www.comercioweb.com.br/ws/servidor.wsdl ”。 The remote server returned an unexpected response: (417) Expectation failed.
远程服务器返回了意外的响应:(417)期望失败。 The remote server returned an error: (417) Expectation failed.
远程服务器返回错误:(417)预期失败。 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.
Delphi 7很好地导入了它……而www.wsdl-analyzer.com则说wsdl的错误为零。
WSDL(xml)生成不正确...由于某种原因,Delphi无法检测到它。.但是在运行时,它给了我一个错误...在c#/ visual studio上,当我创建服务引用时出现了错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.