我想实现一项服务,该服务提供基于证书的身份验证和基本授权。 当我设置 TransportWithMessageCredential 和
wSHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
wSHttpBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
添加服务参考时,我会在客户端看到此信息
<wsHttpBinding>
<binding name="WSHttpBinding_PCoWebServer">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None" />
<message clientCredentialType="UserName" />
</security>
</binding>
</wsHttpBinding>
该服务应提示客户端发送证书和用户名。 非常感谢您在设计此自定义绑定方面的任何帮助。谢谢!