Advertisement
Guest User

code

a guest
May 27th, 2011
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.37 KB | None | 0 0
  1.  <system.serviceModel>
  2.         <bindings>
  3.             <wsHttpBinding>
  4.                 <binding name="WSHttpBinding_ICalculator" closeTimeout="00:01:00"
  5.                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
  6.                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
  7.                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
  8.                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
  9.                    allowCookies="false">
  10.                     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
  11.                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  12.                     <reliableSession ordered="true" inactivityTimeout="00:10:00"
  13.                        enabled="false" />
  14.                     <security mode="Message">
  15.                         <transport clientCredentialType="Windows" proxyCredentialType="None"
  16.                            realm="" />
  17.                         <message clientCredentialType="Windows" negotiateServiceCredential="true"
  18.                            algorithmSuite="Default" />
  19.                     </security>
  20.                 </binding>
  21.             </wsHttpBinding>
  22.         </bindings>
  23.       <services>
  24.         <service name="Service">
  25.           <endpoint address="172.16.70.125:8080/Service" binding="basicHTTPBinding" contract="Microsoft.ServiceModel.Samples.ICalculator"/>
  26.         </service>
  27.         <service behaviorConfiguration="metadataBehavior" name="MyService">
  28.           <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  29.         </service>
  30.       </services>
  31.       <behaviors>
  32.         <serviceBehaviors>
  33.           <behavior name="metadataBehavior">
  34.             <serviceMetadata httpGetEnabled="true" />
  35.           </behavior>
  36.         </serviceBehaviors>
  37.       </behaviors>
  38.  
  39.       <client>
  40.             <endpoint address="http://localhost:8080/Service/CalculatorService"
  41.                binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ICalculator"
  42.                contract="ICalculator" name="WSHttpBinding_ICalculator">
  43.                 <identity>
  44.                     <userPrincipalName value="hari-PC\hari" />
  45.                 </identity>
  46.             </endpoint>
  47.         </client>
  48.     </system.serviceModel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement