提供的URI方案http无效,应为https,参数名via - WCF服务采用HTTPS协议
提供的URI方案http无效,应为https,参数名via - WCF服务采用HTTPS协议
出现此错误是因为服务端与客户端的协议不一致,比如服务端是http协议,而客户端采用https连接,反之亦然。
解决方案:
若采用HTTPS协议,security mode=Transport
XML Code: <!--HTTP协议-->
<!--<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" />
<message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
</security>-->
<!--HTTPS协议-->
<security mode="Transport">
<transport clientCredentialType="Windows" proxyCredentialType="None" />
<message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
</security>
//来源:C/S框架网 | www.csframework.com | QQ:23404761
扫一扫加作者微信