zoukankan      html  css  js  c++  java
  • WCF在https类型的网站中,web.config文件的配置方法。

    关键是加粗的两行。

    <system.serviceModel>
      <behaviors>
       <serviceBehaviors>
        <behavior name="BOAutoApprovalWCFBehavior">
         <serviceMetadata httpsGetEnabled="true" />
         <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
       </serviceBehaviors>
      </behaviors>
      <services>
       <service behaviorConfiguration="BOAutoApprovalWCFBehavior" name="BOAutoApprovalWCF">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransportSecurity"
         contract="IBOAutoApprovalWCF">
         <identity>
          <dns value="localhost" />
         </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
       </service>
      </services>
       <bindings>
         <wsHttpBinding>
           <binding name="TransportSecurity">
             <security mode="Transport">
               <transport clientCredentialType="None" />
             </security>
           </binding>
         </wsHttpBinding>
       </bindings>
     </system.serviceModel>

  • 相关阅读:
    ajax实现异步请求的过程
    GET和POST的区别,何时使用POST?
    函数有几种调用方式?
    substring、slice、substr的区别
    Spring 调用 Stored Procedure 并获取返回值
    Oracle 中, 使用 Instr 函数 替换 OR
    Oracle Materialized View refresh
    Oracle中Union 和 Union All
    toString() 和 强制类型转换 (String)
    2013年这一年
  • 原文地址:https://www.cnblogs.com/liuzhendong/p/2285065.html
Copyright © 2011-2022 走看看