2013-02-26 72 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可以处理旧的服务。 它为我工作,希望它也能为你工作!