导入 WSDL 文件出现错误

diy*_*da_ 3 c# wsdl web-services

.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.
Run Code Online (Sandbox Code Playgroud)

我不知道这个common.xsd文件是什么。有人至少可以告诉我发生这种情况的原因以及可能的解决方案吗?

Mar*_*icz 5

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