[英]Error Adding Service Reference to WinForm project
我想在我的項目中使用實時服務,但是當我嘗試添加其引用時,出現以下錯誤:
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
我試圖在“服務引用”下添加該Web服務引用,但是這給出了上述錯誤 。
問題是Web服務已經過時了,所以我設法通過轉到服務參考的“高級”並將其添加為“Web參考”來獲得其工作參考。 由於Web Reference可以應對舊服務。 它對我有用,希望它也適合你!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.