Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 22nd, 2012  |  syntax: None  |  size: 3.64 KB  |  hits: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. WSDL Generation for WCF Service Behind Load Balancer
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <configuration>
  4. <system.serviceModel>
  5.     <bindings>
  6.         <customBinding>
  7.             <binding name="myBindingEndpoint">
  8.                 <!--    WsdlImporter encountered unrecognized policy assertions in ServiceDescription 'http://tempuri.org/':    -->
  9.                 <!--    <wsdl:binding name='myBindingEndpoint'>    -->
  10.                 <!--        <sp:HttpToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">..</sp:HttpToken>    -->
  11.                 <security defaultAlgorithmSuite="Default" authenticationMode="CertificateOverTransport"
  12.                     requireDerivedKeys="true" securityHeaderLayout="Strict" includeTimestamp="true"
  13.                     keyEntropyMode="CombinedEntropy" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
  14.                     <localClientSettings cacheCookies="true" detectReplays="false"
  15.                         replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="Infinite"
  16.                         replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
  17.                         sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
  18.                         timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
  19.                     <localServiceSettings detectReplays="false" issuedCookieLifetime="10:00:00"
  20.                         maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00"
  21.                         negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
  22.                         sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
  23.                         reconnectTransportOnFailure="true" maxPendingSessions="128"
  24.                         maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
  25.                     <secureConversationBootstrap />
  26.                 </security>
  27.                 <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
  28.                     messageVersion="Default" writeEncoding="utf-8">
  29.                     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
  30.                         maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  31.                 </textMessageEncoding>
  32.                 <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
  33.                     maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
  34.                     bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
  35.                     keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
  36.                     realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
  37.                     useDefaultWebProxy="true" />
  38.             </binding>
  39.         </customBinding>
  40.     </bindings>
  41.     <client>
  42.         <endpoint address="http://myserver/GAEASSLWcfService/ServiceOverSSL.svc"
  43.             binding="customBinding" bindingConfiguration="myBindingEndpoint"
  44.             contract="IServiceOverSSL" name="myBindingEndpoint" />
  45.     </client>
  46. </system.serviceModel>
  47. </configuration>
  48.        
  49. <serviceBehaviors>
  50.    <behavior name="<name>">
  51.      <!-- Other options would go here -->
  52.      <useRequestHeadersForMetadataAddress>
  53.        <defaultPorts> <!-- Use your own port numbers -->
  54.           <add scheme="http" port="81" />
  55.           <add scheme="https" port="444" />
  56.         </defaultPorts>
  57.       </useRequestHeadersForMetadataAddress>
  58.    </behavior>
  59. </serviceBehaviors>