title: How to pass request value through request body in rest web service
body: <p>I am creating simple demo rest web service in .net,there are two ways to send data in web service</p>
  
  <pre><code>Through Query String
  Through Request Body
  </code></pre>
  
  <p>I have written the following code and I able to consume web service through Query string</p>
  
  <pre><code>    [WebInvoke(Method = "POST",
      ResponseFormat = WebMessageFormat.Xml,
      BodyStyle = WebMessageBodyStyle.Wrapped,
      UriTemplate = "xml?id={id}")]
      string XMLData(string id);
  
      public string XMLData(string id)
      {
            return "You  request id is  " + id ;
      }
  </code></pre>
  
  <p>But I have to pass the ID value through request body and not through query string .How can I do that?</p>