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>

  • 相关阅读:
    习题2-7
    习题2-6
    习题2-5
    习题2-4
    习题2-3
    作业二 分支循环结构
    2- 8
    实验三-计算圆柱体积
    实验三-计算n个圆柱体体积
    实验3-计算圆面积
  • 原文地址:https://www.cnblogs.com/liuzhendong/p/2285065.html
Copyright © 2011-2022 走看看