如何在 WCF 服务中使用没有证书的消息安全和用户名 clientCredentialType? [英] How to use Message security and UserName clientCredentialType without Certificate in WCF Service?

查看:50
本文介绍了如何在 WCF 服务中使用没有证书的消息安全和用户名 clientCredentialType?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 wsHttpBinding 的 WCF 服务,我的客户端是我的 Windows 应用程序和我的网站.这两个客户都是我服务的消费者.在我的服务中,我使用 Message security 和 UserName clientCredentialType 进行客户端身份验证.我不想使用任何证书进行此身份验证.我如何能?或者您为此向我建议其他解决方案?

i have a WCF service with wsHttpBinding which my clients are my windows application and my website. both those clients are consumer of the my service. in the my service, i used a Message security and UserName clientCredentialType for clients authentication. i do not want use any certificate for this authentication. how do i? or you suggest to me other solution for this sake?

推荐答案

感谢您的示例.我使用了您的示例,但收到此错误:

thanks for your example. i used your example but i received this error:

无法为此绑定计算方案,因为此 CustomBinding 缺少 TransportBindingElement.每个绑定必须至少有一个从 TransportBindingElement 派生的绑定元素.

The Scheme cannot be computed for this binding because this CustomBinding lacks a TransportBindingElement. Every binding must have at least one binding element that derives from TransportBindingElement.

以及我的其他问题:对于这个解决方案,我在 VS2010 中使用哪种项目类型?项目中的 WCF 服务库或 WCF 服务网站.哪个?

and other my question: for this solution i use from which project type in VS2010? a WCF Service Library in project or a WCF Service website. which one?

感谢您的回答.

这篇关于如何在 WCF 服务中使用没有证书的消息安全和用户名 clientCredentialType?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆