<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <configSections>
    <sectionGroup name="spring">
      <section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
    </sectionGroup>
  </configSections>

  <spring>
    
    <context>
      <!-- Make sure 'http://localhost:2637/Spring.WcfQuickStart.Web/' web application is running -->
      <resource uri="assembly://Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.Config/Web.xml" />      

      <!-- Make sure 'ServerApp' console application is running and listening. -->
      <resource uri="assembly://Spring.WcfQuickStart.ClientApp/Spring.WcfQuickStart.Config/ServerApp.xml" />
    </context>
    
  </spring>

  <system.serviceModel>
    
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBinding1" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
            maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
            useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    
    <client>
      <endpoint name="webCalculatorEndpoint"
          address="http://localhost:2637/Spring.WcfQuickStart.Web.2008/Calculator.svc"
          binding="basicHttpBinding" bindingConfiguration="basicHttpBinding1"
          contract="Spring.WcfQuickStart.ICalculator" />
      <endpoint name="serverAppCalculatorEndpoint"
          address="http://localhost:8000/Spring.WcfQuickStart/service"
          binding="basicHttpBinding" bindingConfiguration="basicHttpBinding1"
          contract="Spring.WcfQuickStart.ICalculator" />
    </client>
    
  </system.serviceModel>

</configuration>