title: Configuring wcf rest services in web.config
body: <p>Where in the <code>web.config</code> should the following blocks of code go for a WCF RESTful service?</p>
  
  <pre><code>&lt;endpoint address="" binding="webHttpBinding"contract="Wcf_Test.IMyService"    
  behaviorConfiguration="httpEndpointBehavour"&gt; 
      &lt;identity&gt; 
          &lt;dns value="localhost"/&gt; 
      &lt;Identity&gt;  
  &lt;/endpoint&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;behaviors&gt;
      &lt;serviceBehaviors&gt; 
          &lt;behavior name="httpBehaviour"&gt; &lt;serviceMetadata httpGetEnabled="True"/&gt;
              &lt;serviceDebug includeExceptionDetailInFaults="False"/&gt;
          &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    &lt;endpointBehaviors&gt; 
          &lt;behavior name="httpEndpointBehavour"&gt; 
              &lt;webHttp /&gt;
          &lt;/behavior&gt; 
      &lt;/endpointBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>