2014-10-27 76 views
0

使用ASP.NET /的Visual Studio二千零十二分之二千零五結合「CustomBinding_IWSTrustFeb2005Async」:錯誤:無法導入來自命名空間

我有一個從服務提供商,這是我需要測試.wsdl文件。 我跑從Vs的命令promopt wsdl.exe myfile.wsdl,但我得到這個錯誤:

Error: Unable to import binding 'CustomBinding_IWSTrustFeb2005Async' from namespace 'http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice'. 
- Unable to import operation 'TrustFeb2005IssueAsync'. 
- The element 'http://schemas.xmlsoap.org/ws/2005/02/trust:RequestSecurityToken' is missing. 

我也試圖從VS 2005和VS 2012添加Web引用但也拋出奇怪的錯誤。

- The WSDL document contains links that could not be resolved. 
    - There was an error downloading 'file:///C:/Users/abcd12/Documents/Visual Studio 2005/MyWebserviceTest/mex.xsd'. 

任何想法有什麼問題或我應該從哪裏開始尋找?

更新:一旦我刪除條目來鍵入import引用mex.xsd,Visual Studio錯誤添加引用就會消失。 但現在VS也提供了與命令提示符相同的錯誤。

更新:看起來像wsdl已損壞。等待提供者給我更新wsdl。

我會在這裏更新,如果我需要任何進一步的幫助。

回答

0

在wsdl中導入的某些.xsd文件未提供給我。一旦我得到這些文件,一切都很順利。