zoukankan      html  css  js  c++  java
  • WCF 绑定wshttpbinding

    <services>
          <service name="DCITS.BEPS.REPORT.ReportService.ReportWCFService" behaviorConfiguration="ServiceBehavior">
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:9008/REPORT/ReportService"/>
              </baseAddresses>
            </host>
            <endpoint address="" binding="wsHttpBinding" bindingConfiguration="NoneSecurity" contract="DCITS.BEPS.REPORT.IReport.IReportContract"/>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
          </service>
        </services>
    
        <bindings>
          <wsHttpBinding>
            <binding name="NoneSecurity"
            maxBufferPoolSize="2147483647" sendTimeout="00:00:01" maxReceivedMessageSize="2147483647" receiveTimeout="00:10:00">
              <reliableSession enabled="true"/>
              <security mode="None"/>
            </binding>
          </wsHttpBinding>
        </bindings>
    <reliableSession enabled="true"/>在binding节点里要加入这句话,不然没有session就宿主不成功!
  • 相关阅读:
    异常及throw、与throws的介绍
    js数组
    正则表达式
    Date对象及toString方法
    js中函数与对象的使用
    js细节
    JavaScript介绍
    浮动、定位
    css背景样式
    盒子模型
  • 原文地址:https://www.cnblogs.com/stalwart/p/3134264.html
Copyright © 2011-2022 走看看