且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 WCF 服务中使用没有证书的消息安全和用户名 clientCredentialType?

更新时间:2021-07-13 00:04:02

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

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?

感谢您的回答.