导入WSDL文件出现错误

3
我有一个客户提供的.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文件是什么。是否有人能够至少告诉我发生这种情况的原因和可能的解决方案。

1个回答

5

common.xsd文件可能包含在WSDL中使用的类型定义。尝试手动下载该文件(URL应该在WSDL中),并将该文件保存在WSDL文件旁边。


在获取了commom.xsd文件之后,它可以正常工作。谢谢。 - diyoda_

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接