1
我使用優秀的DuplexHttpBinding。我現在想擴展它,以便使用傳輸安全性和消息憑證。我有一些正常BasicHttpBinding
S IN此模式下設置像這樣:WCF如何在自定義綁定上設置clientCredentialType
<basicHttpBinding>
<binding name="BasicHttpBinding_Custom">
<security mode="TransportWithMessageCredential">
<message clientCredentialType="UserName"/>
</security>
</binding>
</basicHttpBinding>
但是我不能做同樣的事情與我DuplexHttpBinding
,因爲它不具備安全元素。
我的問題是:如何設置我的DuplexHttpBinding
與TransportWithMessageCredential
?要麼。更一般地說,您如何在從System.ServiceModel.Channels.Binding
繼承而來的綁定中設置郵件安全性?
我一直在努力尋找關於此的任何信息,所以任何有關文檔的鏈接將非常歡迎!
Great-所以接受你自己的答案呢! – nitzmahone 2010-07-16 03:57:50