2013-02-26 25 views
3

我想消耗我的項目現場服務,但是當我試圖增加其refrence,以下錯誤傳來:錯誤添加服務Refrence到WinForm的項目

 
The document at the url https://exdev.www.property24.com/Services/P24ListingService19.asmx was not recognized as a known document type. 
The error message from each known type may help you fix the problem: 
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'. 
- Report from 'DISCO Document' is 'Discovery document at the URL https://exdev.www.property24.com/Services/P24ListingService19.asmx could not be found.'. 
    - The document format is not recognized (the content type is 'application/xhtml+xml; charset=utf-8'). 
- Report from 'WSDL Document' is 'There is an error in XML document (3, 2).'. 
    - was not expected. 
Metadata contains a reference that cannot be resolved: 'https://exdev.www.property24.com/Services/P24ListingService19.asmx'. 
Metadata contains a reference that cannot be resolved: 'https://exdev.www.property24.com/Services/P24ListingService19.asmx'. 
If the service is defined in the current solution, try building the solution and adding the service reference again. 

服務URL可以瀏覽那就是:https://exdev.www.property24.com/Services/P24ListingService19.asmx

任何幫助將是偉大的!

+0

您是否曾經找到過解決方案?我有同樣的問題。 – adam 2013-03-18 14:17:49

回答

1

我試圖在「服務引用」下添加該Web服務引用,但那是給出了上述錯誤

問題是,Web服務是舊的,所以我設法通過轉到服務引用的「高級」並將其添加爲「Web引用」來獲得其工作參考。由於Web Reference可以處理舊的服務。 它爲我工作,希望它也能爲你工作!