config

   

<bindings>
      <!-- サービスとの通信にTCP接続(.NET Remoting)を行う場合の設定です                     -->
      <netTcpBinding>
        <!-- フレームワークが定義するデフォルトの設定です(必須)                             -->
        <!-- 業務で、以下の設定を変更することが必要です                                     -->
        <!-- receiveTimeout: セッションタイムアウト値です                                   -->
        <!-- sendTimeout:    レスポンスタイムアウト値です                                   -->
        <!-- maxBufferSize:  最大送信データサイズです                                       -->
        <!-- maxReceivedMessageSize:                                                        -->
        <!--                 最大受信データサイズです                                       -->
        <!-- maxConnections: サービスの最大同時利用ユーザ数です                             -->
        <!-- security/mode:  通信に利用する認証などの設定です                               -->
        <binding name="netTcpBaseBinding" receiveTimeout="01:00:00" sendTimeout="00:10:00"
            maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxConnections="30" >
        <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2265536"
              maxBytesPerRead="2265536" maxNameTableCharCount="2265536" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
          </security>
        </binding>
        <!-- ↑↑↑ サービス毎にWCFの通信設定を変更する場合は、以下に追加します ↑↑↑      -->
      </netTcpBinding>
      <!-- サービスとの通信にHTTP接続を行う場合の設定です                                   -->
      <wsHttpBinding>
        <!-- フレームワークが定義するデフォルトの設定です(必須)                             -->
        <binding name="wsHttpBaseBinding" closeTimeout="00:10:00" openTimeout="00:10:00"
            receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false"
            transactionFlow="false" hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="2265536" maxReceivedMessageSize="2265536"
            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
            allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2265536" maxArrayLength="2265536"
              maxBytesPerRead="2265536" maxNameTableCharCount="2265536" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="None">
          </security>
        </binding>
        <!-- ↑↑↑ サービス毎にWCFの通信設定を変更する場合は、以下に追加します ↑↑↑      -->
      </wsHttpBinding>
    </bindings>

<client>

      <endpoint name="netTcpBranchCardEntryService"
                binding="netTcpBinding" bindingConfiguration="netTcpBaseBinding"
                contract="BranchCardEntryServiceReference.IBranchCardEntryService" />

    </client>

  </system.serviceModel>

 

 

      <!-- サービスとの通信にTCP接続(.NET Remoting)を行う場合の設定です                     -->
      <netTcpBinding>
        <binding name="netTcpBaseBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
          receiveTimeout="01:00:00" sendTimeout="00:30:00" maxBufferPoolSize="2147483647"
          maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxConnections="30" portSharingEnabled="true">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2265536"
              maxBytesPerRead="2265536" maxNameTableCharCount="2265536"/>
          <reliableSession ordered="true" enabled="false" inactivityTimeout="00:30:00" />
          <security mode="None" />
        </binding>
        <!-- 呼出し側が使用します -->
        <binding name="netTcpSendFileService" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
            hostNameComparisonMode="StrongWildcard" listenBacklog="10"
            maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
            maxReceivedMessageSize="65536">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="None">
            <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
            <message clientCredentialType="Windows" />
          </security>
        </binding>
      </netTcpBinding>

<!-- サービスとの通信にHTTP接続を行う場合の設定です                                   -->
      <wsHttpBinding>
        <binding name="wsHttpBaseBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
          receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
          transactionFlow="false" hostNameComparisonMode="StrongWildcard"
          maxBufferPoolSize="2265536" maxReceivedMessageSize="2065536000"
          messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
          allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2265536" maxArrayLength="2265536"
              maxBytesPerRead="2265536" maxNameTableCharCount="2265536"/>
          <reliableSession ordered="true" enabled="false" inactivityTimeout="00:10:00" />
          <security mode="None" />
        </binding>
      </wsHttpBinding>

 

<behaviors>
      <endpointBehaviors>
        <!-- 通信ログを記録するための設定です(必須)                                         -->
        <!-- 業務では以下の情報を設定します                                                 -->
        <!-- validateRequestLog: 要求メッセージのメッセージ内容出力フラグを設定します       -->
        <!-- validateReplyLog:   応答メッセージのメッセージ内容出力フラグを設定します       -->
        <!-- validateSimpleLog:  通信ログ(要求・応答の履歴情報)の出力フラグを設定します     -->
        <!-- messageLogFilePath: メッセージ内容の出力先を設定します                         -->
        <!-- simpleLogFilePath:  通信ログの出力先を設定します                               -->
        <behavior name="extendLogBehavior">
          <extendLog validateRequestLog="false" validateReplyLog="false"
            validateSimpleLog="true" messageLogFilePath="D:\BanctecSystem\Kokan\Log\Communication\{DATE}.log"
            simpleLogFilePath="D:\BanctecSystem\Kokan\Log\Communication\{DATE}.csv" />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="svcBehavior">
          <!-- セッション維持および要求数に関する設定です -->
          <!-- 業務で設定します                           -->
          <!-- maxConcurrentCalls:     最大要求数(指標:maxConcurrentSessions × 2)         -->
          <!-- maxConcurrentSessions:  最大セッション維持数(指標:binding/maxConnections)   -->
          <!-- maxConcurrentInstances: 最大インスタンス数(指標:binding/maxConnections)     -->
          <serviceThrottling maxConcurrentCalls="60" maxConcurrentSessions="30" maxConcurrentInstances="30" />
          <serviceDebug httpHelpPageEnabled="false" httpsHelpPageEnabled="false" includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>

  <services>
      <!-- [印刷指示サービス]           -->
      <service name="Banking.Tegata.Kokan.Mochidashi.Service.MochidashiPrintOrderService">
        <endpoint binding="netTcpBinding" bindingConfiguration="netTcpBaseBinding"
          name="netTcpMochidashiPrintOrderService"  contract="Banking.Tegata.Kokan.Mochidashi.Service.IMochidashiPrintOrderService" />

    </services>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值