gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 16:00:17 28 4
gpt4 key购买 nike

当我尝试包含 WSDL 服务的引用时出现此错误: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.

有人知道为什么会出现这个错误吗?Delphi 7 导入它非常好......并且www.wsdl-analyzer.com在 wsdl 上说零错误。

最佳答案

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

关于c# - WSDL:在 VS 2010 上添加服务引用 C# 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21760019/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com