【问题标题】:CustomBinding for this BasicHttpBinding?此 BasicHttpBinding 的自定义绑定?
【发布时间】:2011-08-27 01:20:34
【问题描述】:

我很难将 BasicHttpBinding 转换为自定义绑定。具体来说,我需要转换安全元素-

<basicHttpBinding>
 <binding name="MySecureBasicHttpBinding">
  <security mode="TransportWithMessageCredential">
   <transport clientCredentialType="None" proxyCredentialType="None" />
   <message clientCredentialType="UserName" algorithmSuite="Default" />
  </security>
 </binding>
</basicHttpBinding>

任何人都可以帮助在自定义绑定中编写相同的内容吗? 另请参阅 post\doc,从中我可以找到 basicHttpBinding 中的安全模式和值与自定义绑定中的值之间的对应关系。

谢谢

【问题讨论】:

    标签: wcf silverlight security binding web-config


    【解决方案1】:

    试试这个:

    <customBinding>
      <binding name="UsernamePasswordOverHttps">
        <security
          authenticationMode="UserNameOverTransport"      
          messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" />
        <textMessageEncoding messageVersion="Soap11" />
        <httpsTransport />
      </binding>
    </customBinding>
    

    【讨论】:

    • 如果我使用 WSSecurity10WSTrustFebruary2005,我认为它不会在 Silverlight 应用程序中使用......
    • 您在问题中没有提到任何关于 Silverlight 的内容!无论如何消息安全版本不应该有任何问题。它只是说明如果其他组件要求应使用哪些规范。 BasicHttpBinding 也使用此消息安全版本。
    猜你喜欢
    • 1970-01-01
    • 2011-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-17
    • 2011-09-20
    相关资源
    最近更新 更多