Https svcutil在生成代理时给出“HTTP Get Error”

Https svcutil在生成代理时给出“HTTP Get Error”,https,svcutil.exe,Https,Svcutil.exe,我正在尝试使用svcutil.exe生成代理代码。服务正在同一个盒子上运行。 这里是控制台输出。知道怎么了吗 SvcUtil.exe https ://xyz:xxx/servicename/wsdl?wsdl 正在尝试从下载元数据'https://xyz:xxx/servicename/wsdl?wsdl'使用WS- 错误:无法从https://xyz:xxx/servicename/wsdl?wsdl获取元数据 Metadata contains a reference that cann

我正在尝试使用svcutil.exe生成代理代码。服务正在同一个盒子上运行。 这里是控制台输出。知道怎么了吗

SvcUtil.exe https ://xyz:xxx/servicename/wsdl?wsdl
正在尝试从下载元数据'https://xyz:xxx/servicename/wsdl?wsdl'使用WS- 错误:无法从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.
The document was understood, but it could not be processed.
WS元数据交换错误 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.
The document was understood, but it could not be processed.
HTTP获取错误 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.
The document was understood, but it could not be processed.
WSDL文档包含无法解析的链接

下载“https://localhost:xxx/servicename/wsdl?wsdl=wsdl1”时出错

基础连接已关闭:无法为SSL/TLS安全通道建立信任关系

根据验证过程,远程证书无效


您确定这是wsdl的正确地址吗

什么是xyz和xxx?xxx是一个端口号吗

例如,如果您使用web浏览器浏览到它,您能正确地看到wsdl吗

您可以尝试不同的URL,如:

在浏览器和\或使用svcutil.exe中是否可以执行这些操作

您使用的是哪个版本的svcutil.exe


您正在尝试连接到哪种类型的web服务

我分别用xyz和xxx替换了机器名和端口号。是的,我可以在IE中看到wsdl。我已经从事件查看器复制了addr,这表明它是正确的。SvcUtil版本:3.0.4506.2152 SP.030729-0100服务在windows服务中运行。如果ssl证书无效,请参阅:服务配置为https而不是httpso ssl证书有效吗?似乎有效…我正在运行服务的同一个框中运行SvcUtil.exe。