【问题标题】:How to set customBinding to Transport Only Security?如何将 customBinding 设置为仅传输安全性?
【发布时间】:2012-12-20 09:39:59
【问题描述】:

如何将 WCF customBinding 设置为仅使用传输级安全性?

如果它是一个 wsHttpBinding,它会是:

<security mode="Transport" />

该场景是我正在调用使用仅传输安全性的 Java SOAP 服务。没有消息签名。

【问题讨论】:

    标签: wcf wcf-binding


    【解决方案1】:

    这可能是特定于上下文的,但我需要使用:

    <security authenticationMode="MutualCertificateDuplex" />
    

    authentication modes”比“模式”多得多。

    【讨论】:

      【解决方案2】:

      我发现这个自定义绑定...

          <bindings>
            <customBinding>
              <binding name="serviceSoap11">
                <textMessageEncoding messageVersion="Soap11" />
                <httpsTransport />
              </binding>
            </customBinding>
          </bindings>
          <client>
            <endpoint binding="customBinding"
                      bindingConfiguration="serviceSoap11"
                      contract="ServiceProxy.service"
                      name="serviceSoap11"
                      address="[URL]" />
          </client>
      

      ... 相当于这个基本的 http 绑定。

          <bindings>
            <basicHttpBinding>
              <binding name="serviceSoap11">
                <security mode="Transport" />
              </binding>
            </basicHttpBinding>
          </bindings>
          <client>
            <endpoint binding="basicHttpBinding"
                      bindingConfiguration="serviceSoap11"
                      contract="ServiceProxy.service"
                      name="serviceSoap11"
                      address="[URL]" />
          </client>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-11-14
        • 1970-01-01
        • 1970-01-01
        • 2018-07-25
        • 2011-09-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多