我正在尝试用 C# 为 Web 服务创建一个客户端,该 Web 服务(我想)是用 Java 编写的。这是我第一次尝试编写客户端,所以我按照 MSDN 上的说明进行操作,但我遇到了添加引用的问题。当我打开“添加服务引用”对话框并添加 URL 时,出现错误:
There was an error downloading 'http://geoportal.cuzk.cz/WCTService/WCTService.svc'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://geoportal.cuzk.cz/WCTService/WCTService.svc'.
There was no endpoint listening at http://geoportal.cuzk.cz/WCTService/WCTService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution and adding the service reference again.
我的下一步应该是什么?我不知道我该怎么办!(这是来自捷克共和国的坐标转换服务。)
更多信息:
物业服务 (GetCapabilities)
http://geoportal.cuzk.cz/WCTService/WCTService.svc/get ?
本地化服务: http ://geoportal.cuzk.cz/WCTService/WCTService.svc/get?request=GetCapabilities&service=WCTS