title: WCF - Define multiple services in a single APP.Config file?
body: <h3>Scenario</h3>
  
  <p>I have a windows forms application.
  I want to use two different WCF Services that are in no way connected.
  HOWEVER, I'm not sure how to go about defining the services in my APP.CONFIG file.
  From what I have read, it is possible to do what I have done below, but I cannot be sure that the syntax is correct or the tags are all present where necessary and I needed some clarification.</p>
  
  <h3>Question.</h3>
  
  <p>So is the below the correct way to setup two services in A SINGLE APP.CONFIG FILE?
  I.E:</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;system.serviceModel&gt;
          &lt;services&gt;
              &lt;service&gt;
                  &lt;!--SERVICE ONE--&gt;
                  &lt;endpoint&gt;
                  &lt;/endpoint&gt;
                  &lt;binding&gt;
                  &lt;/binding&gt;
              &lt;/service&gt;
              &lt;service&gt;
                  &lt;!--SERVICE TWO--&gt;
                  &lt;endpoint&gt;
                  &lt;/endpoint&gt;
                  &lt;binding&gt;
                  &lt;/binding&gt;
              &lt;/service&gt;
          &lt;/services&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <h3>CODE</h3>
  
  <pre><code>&lt;configuration&gt;
      &lt;system.serviceModel&gt;
          &lt;services&gt;
          &lt;!--SERVICE ONE--&gt;
              &lt;service&gt;
                  &lt;endpoint
                      address=""
                      binding="netTcpBinding"
                      bindingConfiguration="tcpServiceEndPoint"
                      contract="ListenerService.IListenerService"
                      name="tcpServiceEndPoint"
                  /&gt;
                  &lt;binding
                      name="tcpServiceEndPoint"
                      closeTimeout="00:01:00"
                      openTimeout="00:01:00"
                      receiveTimeout="00:10:00"
                      sendTimeout="00:01:00"
                      transactionFlow="false"
                      transferMode="Buffered"
                      transactionProtocol="OleTransactions"
                      hostNameComparisonMode="StrongWildcard"
                      listenBacklog="10"
                      maxBufferPoolSize="524288"
                      maxBufferSize="65536"
                      maxConnections="10"
                      maxReceivedMessageSize="65536"
                  &gt;
                      &lt;readerQuotas
                          maxDepth="32"
                          maxStringContentLength="8192"
                          maxArrayLength="16384"
                          maxBytesPerRead="4096"
                          maxNameTableCharCount="16384"
                      /&gt;
                      &lt;reliableSession
                          ordered="true"
                          inactivityTimeout="00:05:00"
                          enabled="true"
                      /&gt;
                      &lt;security mode="None"&gt;
                          &lt;transport
                              clientCredentialType="Windows"
                              protectionLevel="EncryptAndSign"
                          /&gt;
                          &lt;message clientCredentialType="Windows" /&gt;
                      &lt;/security&gt;
                  &lt;/binding&gt;
              &lt;/service&gt;
              &lt;!--SERVICE TWO--&gt;
              &lt;service&gt;
                  &lt;endpoint
                      address=""
                      binding="netTcpBinding"
                      contract="UploadObjects.IResponseService"
                      bindingConfiguration="TransactedBinding"
                      name="UploadObjects.ResponseService"
                  /&gt;
                  &lt;binding name="TransactedBinding"&gt;
                      &lt;security mode="None" /&gt;
                  &lt;/binding&gt;
              &lt;/service&gt;
          &lt;/services&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <h3>EDIT</h3>
  
  <p>What do the BEHAVIOURS represent?
  How do they relate to the service definitions?</p>
  
  <h3>EDIT 2</h3>
  
  <p>Does the Service Name need to be the same as the Binding Name?</p>