我正在尝试使用svcutil.exe生成代理代码。服务在同一个盒子上运行。 这是控制台输出。知道什么是错的吗?
SvcUtil.exe https ://xyz:xxx/servicename/wsdl?wsdl
尝试使用WS-从'https:// xyz:xxx / servicename / wsdl?wsdl'下载元数据 错误:无法从https:// xyz:xxx / servicename / wsdl获取元数据?wsdl
WS-Metadata Exchange错误 URI:https:// xyz:xxx / servicename / wsdl?wsdl
Metadata contains a reference that cannot be resolved: 'https ://xyz:xxx/servicename/wsdl?wsdl'.
There was no endpoint listening at https://xyz:xxx/servicename/wsdl?wsdl 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.
HTTP GET错误 URI:https:// xyz:xxx / servicename / wsdl?wsdl
The document was understood, but it could not be processed.
WSDL文档包含无法解析的链接。
下载'https:// localhost:xxx / servicename / wsdl?wsdl = wsdl1'时出错。
基础连接已关闭:无法为SSL / TLS安全通道建立信任关系。
根据验证程序,远程证书无效。
答案 0 :(得分:0)
你确定这是wsdl的正确地址吗?
什么是xyz和xxx? xxx是端口号吗?
例如,如果您使用网络浏览器浏览它,您能正确看到wsdl吗?
您可以尝试不同的网址:
http://domain/servicename
http://domain/servicename?wsdl
https://domain/servicename
https://domain/servicename?wsdl
在浏览器和/或使用svcutil.exe中执行任何操作吗?
您使用的是哪个版本的svcutil.exe?
您尝试连接的是哪种类型的网络服务?