【问题标题】:basicHttpBinding with and without ssl at the same time同时使用和不使用 ssl 的 basicHttpBinding
【发布时间】:2014-02-14 00:03:14
【问题描述】:

我有一个托管在 IIS 上的 WCF 服务,该服务在带有 SSL 的 https 上运行良好。它具有以下简单的绑定设置...

<system.serviceModel>
   <bindings>
      <basicHttpBinding>
         <binding maxBufferSize="524288" 
                  maxBufferPoolSize="1048576" 
                  maxReceivedMessageSize="524288">
            <readerQuotas maxStringContentLength="262144" maxArrayLength="65536" />
            <security mode="Transport">
               <transport clientCredentialType="None" />
             </security>        
         </binding>
      </basicHttpBinding>
   </bindings>
</system.serviceModel>

是否可以有另一个 basicHttpBinding 但没有安全模式,以便客户端可以使用 http 或 https 连接。我是否只是复制并粘贴绑定并删除副本上的安全模式?还是会因为有两个相同类型但没有名称的绑定而导致混淆?

【问题讨论】:

  • 您找到解决问题的方法了吗?

标签: wcf ssl basichttpbinding


【解决方案1】:

您必须创建另一个绑定并添加一个附加端点才能在没有安全性的情况下使用该绑定。绑定只是描述如何创建端点,但绑定配置不会打开任何端点。您可以有多个端点使用相同的绑定,但每个端点只能有一个绑定。

【讨论】:

    猜你喜欢
    • 2012-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多