我有一个客户端提供的.wsdl
文件列表。我试图按照here所述导入它们。
但是当我这样做时,它会出错。此错误如下所示。
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
文件是什么。至少有一个人可以告诉我这种情况发生的原因和可能的解决方案。
答案 0 :(得分:3)
common.xsd
文件可能包含WSDL中使用的类型定义。尝试手动下载文件(URL应该在WSDL中)并将文件保存在WSDL文件旁边。