title: jQuery Ajax Post to WCF returning "Bad Request"
body: <p>I can't seem to quite get this.</p>
  
  <p>I have a WCF service like this;</p>
  
  <pre><code>    [OperationContract]
      [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
      bool Test();
  </code></pre>
  
  <p>Then the implementation;</p>
  
  <pre><code>    public bool Test()
      {
          return true;
      }
  </code></pre>
  
  <p>Then my jQuery;</p>
  
  <pre><code>                jQuery.support.cors = true;
                  $.ajax({
                      type: "POST",
                      contentType: "application/json; charset=utf-8", 
                      dataType: "json",
                      url: "http://localhost:8732/Design_Time_Addresses/MyService/Service/mex/Test",
                      timeout: 2000,
                      success: function (data) {
                          alert(9);
                      },
                      error: function (xhr, status, error) {
                          alert(status);
                          alert(error);
                      }
                  });
  </code></pre>
  
  <p>Every time I call this I get "Bad Request".  If I change the URL to this say;</p>
  
  <pre><code>http://localhost:8732/Design_Time_Addresses/MyService/Service/mex/Tesdt
  </code></pre>
  
  <p>i get the error "Unknown" so i think it's finding my service.</p>