title: C# Restful Service Using WebInvoke POST
body: <p>I am developing a Restful service in C# and working well when I use</p>
  
  <pre><code>[OperationContract]
      [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, BodyStyle =     
  WebMessageBodyStyle.Wrapped, UriTemplate = "json/?id={id}")]
      string jdata(string id);
  </code></pre>
  
  <p>and my corrsponding function implementation is:</p>
  
  <pre><code>public string json(string id)
  {
   return "You Typed : "+id;
  }
  </code></pre>
  
  <p>Up to here all works well,
  but when I change WenInvoke Method="POST" I have to face a "Method NOT Allowed.";</p>
  
  <pre><code>[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Xml, BodyStyle = 
  WebMessageBodyStyle.Wrapped, UriTemplate = "json/?id={id}")]
      string jdata(string id);
  </code></pre>