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>

  • 相关阅读:
    边框上带有文字
    满屏展示
    javaScript中SetInterval与setTimeout区别
    圆形进度条
    抢购(秒杀)业务的技术要点
    Sybase 动态改变存储过程里查询的数据库
    在Hibernate映射文件里配置Sequence
    初学struts2杂乱笔记
    Struts2的学习链接
    DWR框架在web.xml的完整配置及注释
  • 原文地址:https://www.cnblogs.com/liuzhendong/p/2285065.html
Copyright © 2011-2022 走看看