如何在不使用任何证书的情况下在wcf中使用wsHttpBinding

时间:2012-10-25 12:33:16

标签: wcf wshttpbinding

我想在wcf服务中使用wsHttpBinding,wsHttpBinding是安全问题的证书所必需的,但我想使用没有安全性的wsHttpBinding,这是否适用?

2 个答案:

答案 0 :(得分:1)

是的,您可以通过Message身份验证使用Windows安全性:

<security mode="Message">
     <message clientCredentialType="Windows" />
</security>

答案 1 :(得分:1)

我不知道你为什么要使用wsHttpBinding而不是basicHttpBinding,但是Difference between BasicHttpBinding and WsHttpBindingUse wsHttpBinding with Windows Authentication可能对你有用。