gpt4 book ai didi

c# - 将服务引用添加到 WinForm 项目时出错

转载 作者:行者123 更新时间:2023-11-30 17:55:27 24 4
gpt4 key购买 nike

我想在我的项目中使用实时服务,但是当我尝试添加它的引用时,出现了以下错误:

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.

可以浏览到的Service URL是:https://exdev.www.property24.com/Services/P24ListingService19.asmx

最佳答案

我试图在“服务引用”下添加该 Web 服务引用,但出现了上述错误 .

问题是 Web 服务是旧的,所以我设法通过转到服务引用的“高级”并将其添加为“Web 引用”来获得它的工作引用。因为 Web Reference 可以应对旧服务。它对我有用,希望它也对你有用!

关于c# - 将服务引用添加到 WinForm 项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15083434/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com