简体   繁体   English

WSDL:在VS 2010上添加服务引用C#时出错

[英]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.

相关问题 带有CMake的C#-添加服务引用(wsdl文件) - C# with CMake - Add service reference (wsdl file) VS2010添加.dll引用错误 - VS2010 add a .dll reference error SOAP Web服务/ VS2010添加服务引用 - SOAP Web Service / VS2010 Add Service Reference C#VS2012必发网站对wsdl的引用 - C# VS2012 Betfair web reference to wsdl 如何在VS 2010中向控制台应用程序添加设计时服务引用? - How to add a design time service reference to a console application in VS 2010? 为什么c#不会因为在架构中使用xs:选项而在visual studio中使用add by service reference来创建来自wsdl的代码? - Why would c# not create code from wsdl using add by service reference in visual studio just because of a xs:choice in the schema? 使用C#迁移项目时在VS 2010中添加参考dll时出错 - Adding reference dll in VS 2010 got error when migrating the project using C# VS 2010 Visual C# - 在同一解决方案中引用其他项目 - VS 2010 Visual C# - reference other project in same solution 通过从C#VS 2010中的MS安装程序命令“ msiexec”访问URL更新C#Web服务应用程序时出错 - error of updating an C# web service application by accessing a URL from MS installer command “msiexec” in C# VS 2010 c#以编程方式添加服务引用 - c# programmatically add service reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM