title: Jquery POST XML to Rest service
body: <p>I am trying to send a POST request to a Restful service with jquery, where the type of data sent is xml.</p>
  
  <p>The Rest service works since I tested it from Chrome Rest plugin.
  I made it work for GET XML, GET JSON and POST JSON, but no way with POST XML.</p>
  
  <p>Here goes the code. I do not get any error, but the invocation is not a  success:</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "http://[...]",
      dataType: "xml",
      contentType: "application/xml"
      data: "&lt;Category&gt;&lt;categoryId&gt;007&lt;/categoryId&gt;&lt;categoryName&gt;Ajax&lt;/categoryName&gt;&lt;/Category&gt;",
      success: function (res) {
          alert("XML: it works!");
      },
      error: function (res) {
          alert("XML: not working! " + res.statusText);
      }
  });
  </code></pre>