title: REST Service exposed on WCF not populating parameter values
body: <p>I have a WCF service that takes as a parameter a string value "name". This service interface looks like this...</p>
  
  <pre><code>[ServiceContract(Name = "ContactLookup", Namespace = "Search")]
  public interface IAjaxResultSearcherService
  {
      [OperationContract]
      [WebGet(RequestFormat = WebMessageFormat.Json)]
      Result[] SearchResultsWithNameLike(string name);
  }
  </code></pre>
  
  <p>The service is exposed to using the following configuration...</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" /&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="AjaxServiceBehavior"&gt;
                  &lt;serviceDebug
                         includeExceptionDetailInFaults="true" 
                         httpHelpPageEnabled="true"/&gt;
                  &lt;serviceMetadata httpGetEnabled="true" httpGetUrl=""/&gt;
                  &lt;serviceCredentials&gt;
                      &lt;serviceCertificate findValue="localhost" 
                                   storeLocation="LocalMachine" 
                                   storeName="My" x509FindType="FindBySubjectName"/&gt;
                  &lt;/serviceCredentials&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
          &lt;endpointBehaviors&gt;
              &lt;behavior name="JsonBehavior"&gt;
                  &lt;enableWebScript/&gt;
              &lt;/behavior&gt;
          &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;services&gt;
          &lt;service name="HelloIndigo.AjaxResultSearcherService" 
                               behaviorConfiguration="AjaxServiceBehavior"&gt;
              &lt;endpoint address="json"
                        binding="webHttpBinding"
                    behaviorConfiguration="JsonBehavior"
                        contract="Contract.IAjaxResultSearcherService" /&gt;
          &lt;/service&gt;
      &lt;/services&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>My .svc file uses the WebScriptServiceHostFactory. This seems to be working, meaning that I can connect to the service from my jquery client, but even though I set the parameter value via the ajax call, when the message gets to the service implementation, the parameter value is null.</p>
  
  <p>I am calling the service via jquery like so...</p>
  
  <pre><code>$.ajax({
      url: url,
      data: { "name":"test" },
      type: "GET",
      processData: false,
      contentType: "application/json",
      timeout: 10000,
      dataType: "text",
      success: function(res) {
          alert('function successful! returned: ' + res.toString());
      },
      error: function(xhr) {
          alert('an error occurred: ' + xhr.responseText);
      }
  });
  </code></pre>
  
  <p>I get no errors from the service call, but when I debug the process, the parameter value is null. Why won't WCF pass parameter values like I expect?</p>
  
  <p>Thanks for the help.</p>