title: Error: Cannot obtain Metadata from WCF service
body: <p>I have a successfully running WCF service that I can call using javascript. However I want to invoke it using the WCF test client and im having difficulty doing this. I am told that I need to make sure I have enabled meta data publishing at the specified address. After reading the documentation I just cant see what im meant to do this is my configuration:</p>
  <pre class="lang-xml prettyprint-override"><code>    &lt;system.serviceModel&gt;
         &lt;services&gt;
             &lt;service name=&quot;CommentSessionIDWCFService&quot; 
                      behaviorConfiguration=&quot;CommentSessionIDBehavior&quot;&gt;
                &lt;endpoint 
                    address=&quot;&quot; 
                    behaviorConfiguration=&quot;CountryProvinceBehavior&quot;
                    binding=&quot;webHttpBinding&quot; 
                    contract=&quot;ICommentSessionIDWCFService&quot; /&gt;
             &lt;/service&gt;
         &lt;/services&gt;
         &lt;behaviors&gt;
            &lt;serviceBehaviors&gt;
               &lt;behavior name=&quot;CommentSessionIDBehavior&quot;&gt;
                  &lt;serviceMetadata httpGetEnabled=&quot;true&quot;/&gt;
                  &lt;serviceDebug includeExceptionDetailInFaults=&quot;true&quot;/&gt;
               &lt;/behavior&gt;
            &lt;/serviceBehaviors&gt;
            &lt;endpointBehaviors&gt;
                &lt;behavior name=&quot;CountryProvinceBehavior&quot;&gt;
                    &lt;webHttp/&gt;
                &lt;/behavior&gt;
            &lt;/endpointBehaviors&gt;
         &lt;/behaviors&gt;
      &lt;/system.serviceModel&gt;
  </code></pre>
  <p>I've read other posts but I can't see what to populate and I just keep getting errors. Q's..</p>
  <ol>
  <li><p>Am I right in saying that I need to configure a complete new service in my config to show the metadata?</p>
  </li>
  <li><p>What do I add to the configuration to make this meta data published so I can invoke with the client?</p>
  </li>
  </ol>