WCF客户端https请求
我正在尝试将SOAP消息发送到以HTTPS开头的端点。这是单向SSL,所以我不需要证书来发送请求 使用下面的配置时,我遇到以下异常:WCF客户端https请求,wcf,ssl,soap,Wcf,Ssl,Soap,我正在尝试将SOAP消息发送到以HTTPS开头的端点。这是单向SSL,所以我不需要证书来发送请求 使用下面的配置时,我遇到以下异常: Could not establish secure channel for SSL/TLS with authority 'some.domain.com/endpoint'. 我尝试了许多不同的传输设置,有时它要求在ClientCredentials中输入用户名或证书,但嘿,我不需要它们!我可以通过浏览器窗口访问请求的端点,而无需任何身份验证。 配置中是否缺
Could not establish secure channel for SSL/TLS with authority 'some.domain.com/endpoint'.
我尝试了许多不同的传输设置,有时它要求在ClientCredentials中输入用户名或证书,但嘿,我不需要它们!我可以通过浏览器窗口访问请求的端点,而无需任何身份验证。
配置中是否缺少某些内容?我现在感到有点困惑
<bindings>
<basicHttpBinding>
<binding name="PublisherBinding">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://some.domain.com/endpoint"
binding="basicHttpBinding" bindingConfiguration="PublisherBinding"
contract="PublisherContract" name="NotificationsEndpoint"/>
</client>
不幸的是,wcf测试客户端不支持无效证书。你可以让它像这样工作,也可以使用。第二种解决方案更好