2013-03-13 91 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