title: tests wcf service in the browser
body: <p>I can't invoke a basic wcf web method in the browser even with <code>&lt;ServiceMetadata httpGetEnabled="True"/&gt;</code> in the config file.</p>
  
  <p>For the source, code, it's very basic:</p>
  
  <p>For the interface:</p>
  
  <pre><code>[ServiceContract]
      public interface IService1
      {
  
          [OperationContract]
          [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
          string GetData();
  
          [OperationContract]
          CompositeType GetDataUsingDataContract(CompositeType composite);
  
          // TODO: ajoutez vos opérations de service ici
      }
  </code></pre>
  
  <p>And for the implementation:</p>
  
  <pre><code> public string GetData()
          {
              return ("{'code':'yes'}");
          }
  </code></pre>
  
  <p>This method works fine in the built-in visual studio wcf service tester and returns <code>{'code':'yes'}</code>.</p>
  
  <p>In the browser, when I call the <code>http://localhost:54421/Service1.svc/GetData</code>, it displays a blank page. How can I resolve this?</p>