我正在尝试使用C#创建一个客户端,用于连接一个(我猜测是)用Java编写的Web服务。这是我第一次尝试编写客户端,因此我正在按照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
Endpoint not found.
你确定服务器上的服务形状正确吗?配置文件中是否定义了此服务的任何端点? - Naveed Butt