I have wsdl
文件和xsd
我本地机器上的文件。我想在项目中添加服务引用。我没有网络服务,我只有wsdl
file.
我收到以下错误:
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'http://localhost/DService/AllService.svc?xsd=xsd0'.
- The request failed with HTTP status 404: Not Found.
您的设置已完成,包含一个 wsdl 文件和几个 xsd 文件。
您遇到该问题的原因是因为链接'http://localhost/DService/AllService.svc?xsd=xsd0'.
被打破。
解决方案是搜索包含 xsd 文件的文件夹AllService
。
为了方便起见,请将所有文件放在一个文件夹中。接下来是将绝对路径复制到包含搜索短语的文件AllService
,将 localhost url 替换为文件的绝对路径。
再次运行该命令并观察其工作情况。
注意:请勿删除 url,因为这对于制作完整的代理至关重要。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)