title: WCF REST and QueryString, wrong UriTemplate?
body: <p>Hi i have a simple WCF REST service, i need to get some parameters via querystring that looks like this.</p>
  
  <p>page=1&amp;rp=10&amp;sortname=id&amp;sortorder=asc&amp;query=&amp;qtype=Application</p>
  
  <p>My UriTemplate not working, what is wrong here? just trying to get the page param so far. Any idea how the uri should look like?</p>
  
  <pre><code>[OperationContract]
  
      [WebInvoke(Method = "POST",
      BodyStyle = WebMessageBodyStyle.WrappedRequest,
      ResponseFormat = WebMessageFormat.Json,RequestFormat = WebMessageFormat.Json,
      UriTemplate = "/?page={page}")]
  
      [System.Web.Script.Services.ScriptMethod(ResponseFormat = System.Web.Script.Services.ResponseFormat.Json)]
      JSONData GetLogList(string page);
  </code></pre>
  
  <p>Here is my service code</p>
  
  <pre><code>   public class LogService : ILog
  {
      [System.Web.Script.Services.ScriptMethod(ResponseFormat =    System.Web.Script.Services.ResponseFormat.Json)]
  
      public JSONData GetLogList(string page)
      {
          var logContext = new LogViewDataContext();
          var logsList = from logs in logContext.Logs select logs;
          //return logsList.Cast&lt;Log&gt;().ToString();
  
  
          var baseData = new JSONData();
          baseData.page = Int32.Parse(page ?? "1");
          baseData.total = logsList.Count();
  
          var cells = new ArrayList();
  
  
          var tmplist = new List&lt;JSONDataRow&gt;();
          foreach(var log in logsList)
          {
              var row = new JSONDataRow();
              row.id = log.ID;
              cells.Add(value: log.Date);
              cells.Add(value: log.Application);
              cells.Add(value: log.Server);
              cells.Add(value: log.Message);
              row.cell = cells;
  
              tmplist.Add(row);
  
          }
  
          int x = Int32.Parse(page);
          int pageSize = 10;
  
  
  
          baseData.rows = tmplist.Skip((x - 1) * pageSize).Take(pageSize).ToList();
          return baseData;
      }
  
  }
  </code></pre>
  
  <p>Here is the javascript that calling the service.</p>
  
  <pre><code>   &lt;script type="text/javascript"&gt;
  
  $(document).ready(function() {
  
      $("#logGrid").flexigrid({
          type: 'POST',
          url: 'http://MyWeb/Services/LogService.svc/',
          contentType: "application/json; charset=utf-8",
          dataType: "json",
  
  
          colModel: [
              { display: 'Date', name: 'Date', width: 40, sortable: true, align: 'left' },
              { display: 'Application', name: 'Application', width: 150, sortable: true, align: 'left' },
              { display: 'Server', name: 'Server', width: 150, sortable: true, align: 'left' },
              { display: 'Message', name: 'Message', width: 250, sortable: true, align: 'left' }
          ],
  
  
          searchitems: [
              { display: 'Date', name: 'Date' },
              { display: 'Application', name: 'Application', isdefault: true },
              { display: 'Server', name: 'Server' }
          ],
          sortname: "id",
          sortorder: "asc",
          usepager: true,
          title: "test",
          useRp: true,
          rp: 10,
          showTableToggleBtn: false,
          resizable: false,
          width: 700,
          height: 370,
          singleSelect: true
  
      });
  
  });
  
         &lt;/script&gt;
  </code></pre>