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.Server.Core/3.3/app.config

    r4305 r4316  
    2828   
    2929    <bindings>
    30       <basicHttpBinding>
    31         <binding name="StreamedHttpBinding" sendTimeout="00:10:00" maxBufferSize="104857600"
    32           maxBufferPoolSize="104857600" maxReceivedMessageSize="104857600"
    33           transferMode="Streamed">
     30      <netTcpBinding>
     31        <binding name="TcpStreamedBinding" sendTimeout="00:10:00" transferMode="Streamed"
     32          maxBufferPoolSize="104857600" maxBufferSize="104857600" maxReceivedMessageSize="104857600">
    3433          <readerQuotas maxStringContentLength="104857600" maxArrayLength="104857600" />
    35           <security>
    36             <transport>
     34          <security mode="TransportWithMessageCredential">
     35            <transport clientCredentialType="Certificate">
    3736              <extendedProtectionPolicy policyEnforcement="Never" />
    3837            </transport>
     38            <message clientCredentialType="UserName" />
    3939          </security>
    4040        </binding>
    41       </basicHttpBinding>
     41      </netTcpBinding>
    4242      <wsHttpBinding>
    4343        <binding name="HttpBinding">
    44           <security>
     44          <security mode="Message">
    4545            <transport>
    4646              <extendedProtectionPolicy policyEnforcement="Never" />
     
    5454      <serviceBehaviors>
    5555        <behavior name="ServiceBehaviour">
    56           <serviceMetadata httpGetEnabled="true" />
     56          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
    5757          <serviceDebug includeExceptionDetailInFaults="true" />
    5858          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
     
    7070    <services>
    7171      <service behaviorConfiguration="ServiceBehaviour" name="HeuristicLab.Hive.Server.Core.SlaveFacade">
    72         <endpoint address="http://localhost:9000/SlaveService" binding="wsHttpBinding"
    73           bindingConfiguration="HttpBinding" name="SlaveHttpEndpoint"
    74           contract="HeuristicLab.Hive.Contracts.Interfaces.ISlaveFacade" />
     72        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="HttpBinding"
     73          name="SlaveHttpEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.ISlaveFacade" />
    7574        <endpoint address="mex" binding="mexHttpBinding" name="SlaveMexEndpoint"
    7675          contract="HeuristicLab.Hive.Contracts.Interfaces.ISlaveFacade" />
     76        <endpoint binding="netTcpBinding" bindingConfiguration="TcpStreamedBinding"
     77          name="SlaveTcpStreamedEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.ISlaveFacade" />
     78        <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
     79          name="SlaveTcpMexEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.ISlaveFacade" />
    7780        <host>
    7881          <baseAddresses>
    7982            <add baseAddress="http://localhost:9000/SlaveService" />
     83            <add baseAddress="net.tcp://localhost:9001/SlaveServiceStreamed" />
    8084          </baseAddresses>
    8185        </host>
    8286      </service>
    8387      <service behaviorConfiguration="ServiceBehaviour" name="HeuristicLab.Hive.Server.Core.ServerConsoleFacade">
    84         <endpoint address="http://localhost:9000/ServerConsoleService"
    85           binding="wsHttpBinding" bindingConfiguration="HttpBinding" name="ServerConsoleHttpEndpoint"
    86           contract="HeuristicLab.Hive.Contracts.Interfaces.IServerConsoleFacade" />
     88        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="HttpBinding"
     89          name="ServerConsoleHttpEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.IServerConsoleFacade" />
    8790        <endpoint address="mex" binding="mexHttpBinding" name="ServerConsoleMexEndpoint"
    8891          contract="HeuristicLab.Hive.Contracts.Interfaces.IServerConsoleFacade" />
     
    9497      </service>
    9598      <service behaviorConfiguration="ServiceBehaviour" name="HeuristicLab.Hive.Server.Core.ClientFacade">
    96         <endpoint address="http://localhost:9000/ClientService" binding="wsHttpBinding"
    97           bindingConfiguration="HttpBinding" name="ClientHttpEndpoint"
    98           contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
    99         <endpoint address="mex" binding="mexHttpBinding" name="ClientMexEndpoint"
    100           contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
    101         <endpoint address="http://localhost:9000/ClientServiceStreamed"
    102           binding="basicHttpBinding" bindingConfiguration="StreamedHttpBinding"
    103           name="ClientStreamedHttpEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
     99        <endpoint address="" binding="netTcpBinding" bindingConfiguration="TcpStreamedBinding"
     100          name="ClientTcpStreamedEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
     101        <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
     102          name="ClientTcpMexEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
     103        <endpoint binding="wsHttpBinding" bindingConfiguration="HttpBinding"
     104          name="ClientHttpEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
     105        <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
     106          name="ClientHttpMexEndpoint" contract="HeuristicLab.Hive.Contracts.Interfaces.IClientFacade" />
    104107        <host>
    105108          <baseAddresses>
     109            <add baseAddress="net.tcp://localhost:9001/ClientServiceStreamed" />
    106110            <add baseAddress="http://localhost:9000/ClientService" />
    107111          </baseAddresses>
Note: See TracChangeset for help on using the changeset viewer.