Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 导入WSDL文件时出错_C#_Web Services_Wsdl - Fatal编程技术网

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文件后,它工作了。谢谢