Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/25/10 15:58:36 (14 years ago)
Author:
cneumuel
Message:

made streaming wcf-services work with Transport-Security and net.tcp but with Message-Level Credentials (#1168)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Communication/3.3/app.config

    r4305 r4316  
    1919    </behaviors>
    2020    <bindings>
     21      <netTcpBinding>
     22        <binding name="SlaveTcpStreamedEndpoint" closeTimeout="00:01:00"
     23          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
     24          transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions"
     25          hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="104857600"
     26          maxBufferSize="104857600" maxConnections="10" maxReceivedMessageSize="104857600">
     27          <readerQuotas maxDepth="32" maxStringContentLength="104857600" maxArrayLength="104857600"
     28            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     29          <reliableSession ordered="true" inactivityTimeout="00:10:00"
     30            enabled="false" />
     31          <security mode="TransportWithMessageCredential">
     32            <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
     33            <message clientCredentialType="UserName" algorithmSuite="Default" />
     34          </security>
     35        </binding>
     36        <binding name="SlaveTcpMexEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00"
     37          receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
     38          transferMode="Buffered" transactionProtocol="OleTransactions"
     39          hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288"
     40          maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536">
     41          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
     42            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     43          <reliableSession ordered="true" inactivityTimeout="00:10:00"
     44            enabled="false" />
     45          <security mode="None">
     46            <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
     47            <message clientCredentialType="Windows" />
     48          </security>
     49        </binding>
     50      </netTcpBinding>
    2151      <wsHttpBinding>
    2252        <binding name="SlaveHttpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00"
    23             receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
    24             transactionFlow="false" hostNameComparisonMode="StrongWildcard"
    25             maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    26             messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
    27             allowCookies="false">
     53          receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false"
     54          transactionFlow="false" hostNameComparisonMode="StrongWildcard"
     55          maxBufferPoolSize="104857600" maxReceivedMessageSize="104857600"
     56          messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
     57          allowCookies="false">
    2858          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    29               maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     59            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    3060          <reliableSession ordered="true" inactivityTimeout="00:10:00"
    31               enabled="false" />
     61            enabled="false" />
    3262          <security mode="Message">
    3363            <transport clientCredentialType="Windows" proxyCredentialType="None"
    34                 realm="" />
     64              realm="" />
    3565            <message clientCredentialType="UserName" negotiateServiceCredential="true"
    36                 algorithmSuite="Default" />
     66              algorithmSuite="Default" />
    3767          </security>
    3868        </binding>
    3969        <binding name="SlaveMexEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00"
    40             receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
    41             transactionFlow="false" hostNameComparisonMode="StrongWildcard"
    42             maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    43             messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
    44             allowCookies="false">
     70          receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
     71          transactionFlow="false" hostNameComparisonMode="StrongWildcard"
     72          maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
     73          textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
    4574          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    46               maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     75            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    4776          <reliableSession ordered="true" inactivityTimeout="00:10:00"
    48               enabled="false" />
     77            enabled="false" />
    4978          <security mode="None">
    5079            <transport clientCredentialType="Windows" proxyCredentialType="None"
    51                 realm="" />
     80              realm="" />
    5281            <message clientCredentialType="Windows" negotiateServiceCredential="true" />
    5382          </security>
     
    5685    </bindings>
    5786    <client>
    58       <endpoint address="http://localhost:9000/SlaveService" behaviorConfiguration="SlaveServiceBehaviour" binding="wsHttpBinding"
    59           bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade"
    60           name="SlaveHttpEndpoint">
     87      <endpoint address="http://localhost:9000/SlaveService" binding="wsHttpBinding" behaviorConfiguration="SlaveServiceBehaviour"
     88        bindingConfiguration="SlaveHttpEndpoint" contract="SlaveService.ISlaveFacade"
     89        name="SlaveHttpEndpoint">
    6190        <identity>
    6291          <certificate encodedValue="AwAAAAEAAAAUAAAAeBLH/0jWrlsW42fIC8VIIdAE6PUgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMzE1NTg0OFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmOgweB6X4Ss6W2xb2hg1x61cjD2T7SO0ckkzmtqRhC2UWly9dBnonFJmg9RjN0y6l2tZhVzNhq8DgCkn3hPg5GL3XIwYX4PsXwNmeT6i+7s6rGbESuaEMvYOAQJSJ+MTgBvXCwo2g5nFHIBqP4W4aU2eybxP7H4cm1rQpoYHHjQIDAQABo0kwRzBFBgNVHQEEPjA8gBASDhO/IE7Ff7PpkCVF8oUpoRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghDez3CoJIIitEZ5xwVqLJn6MAkGBSsOAwIdBQADgYEAhxAzm3JTV7j51jti5P7izTEs7+8534kQloeAJDwlKolkd4ZMkf0BiexC2Vt1KsnxUjrK0HbbITzazkvkAmKi7dP+4G+3SrWag5lS4NcoPjTQy16T3zC9E6yafRaZp1/pxjC3Ap44qwq4Kjl2mEjeHHsdie/h4loowTqC9FlLbgo=" />
     
    6493      </endpoint>
    6594      <endpoint address="http://localhost:9000/SlaveService/mex" binding="wsHttpBinding"
    66           bindingConfiguration="SlaveMexEndpoint" contract="SlaveService.ISlaveFacade"
    67           name="SlaveMexEndpoint" />
     95        bindingConfiguration="SlaveMexEndpoint" contract="SlaveService.ISlaveFacade"
     96        name="SlaveMexEndpoint" />
     97      <endpoint address="net.tcp://localhost:9001/SlaveServiceStreamed" behaviorConfiguration="SlaveServiceBehaviour"
     98        binding="netTcpBinding" bindingConfiguration="SlaveTcpStreamedEndpoint"
     99        contract="SlaveService.ISlaveFacade" name="SlaveTcpStreamedEndpoint">
     100        <identity>
     101          <dns value="localhost" />
     102        </identity>
     103      </endpoint>
     104      <endpoint address="net.tcp://localhost:9001/SlaveServiceStreamed/mex"
     105        binding="netTcpBinding" bindingConfiguration="SlaveTcpMexEndpoint"
     106        contract="SlaveService.ISlaveFacade" name="SlaveTcpMexEndpoint" />
    68107    </client>
    69108  </system.serviceModel>
Note: See TracChangeset for help on using the changeset viewer.