title: When performing a POST to REST WCF Service get a Unrecognized exception
body: <p>I have a REST POST method as follows:</p>
  
  <pre><code>[WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml)]
  string GetFromXml(XElement xmlString);
  </code></pre>
  
  <p>I am trying to do a post operation from my client using the following code:</p>
  
  <pre><code>var client = new RestClient();
  client.BaseUrl = "http://localhost/XMLRestService/XmlService.svc";
  var request = new RestRequest(Method.POST);
  request.Resource = "GetFromXml";
  client.AddDefaultHeader("Content-Type", "text/xml");            
  request.AddBody(obj, "XMLRestService");            
  var response = client.Execute(request);
  </code></pre>
  
  <p>When i do the above i get a 400 Bad request. I then enabled tracing on the WCF Service. And the stack trace gave me a Unrecognized Message version excpetion that is thrown my the <code>System.ServiceModel.CommunicationException</code> class.</p>
  
  <p>I am unable to post the request successfully. Help appreciated.</p>