2013-03-13 89 views
2

我有一个由客户端提供的.wsdl文件列表。我试图按照here的描述导入它们。导入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文件是什么。有人能告诉我发生这种情况的原因和可能的解决办法吗?

回答

2

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

+0

好吧,我会尝试。谢谢。 – 2013-03-13 10:04:04

+0

设置获取commom.xsd文件后,它工作。谢谢。 – 2013-03-14 05:48:34