C# 导入WSDL文件时出错
我有一个客户机提供的C# 导入WSDL文件时出错,c#,web-services,wsdl,C#,Web Services,Wsdl,我有一个客户机提供的.wsdl文件列表。我已尝试按描述导入它们 但是当我这样做的时候,它给出了一个错误。此错误如下所示 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 'file:///[path]/WebService
.wsdl
文件列表。我已尝试按描述导入它们
但是当我这样做的时候,它给出了一个错误。此错误如下所示
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 'file:///[path]/WebServices_8_0_2_0/WebServices/wsdl/common.xsd'.
- Could not find file '[path]\WebServices_8_0_2_0\WebServices\wsdl\common.xsd'.
- Could not find file '[path]\WebServices_8_0_2_0\WebServices\wsdl\common.xsd'.
- Could not find file '[path]\WebServices_8_0_2_0\WebServices\wsdl\common.xsd'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
我不知道这个
common.xsd
文件是什么。至少有人能告诉我发生这种情况的原因和可能的解决方案。公共.xsd文件可能包含WSDL中使用的类型定义。尝试手动下载该文件(URL应位于WSDL中),并将该文件保存在WSDL文件旁边。该common.xsd
文件可能包含WSDL中使用的类型定义。尝试手动下载该文件(URL应位于WSDL中),并将该文件保存在WSDL文件旁边。设置获取commom.xsd文件后,该操作正常。谢谢。设置获取commom.xsd文件后,它工作了。谢谢