<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就宿主不成功!

相关文章:

  • 2021-10-21
  • 2021-11-30
  • 2021-11-22
  • 2022-12-23
  • 2021-11-14
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2022-01-30
  • 2021-12-06
  • 2022-01-30
  • 2021-12-10
相关资源
相似解决方案