title: How to update XML file using Ajax + Jquery?
body: <p>I want to update the XML file using Ajax &amp; jquery. I am new to ajax so tried with using both POST/PUT. </p>
  
  <p>For PUT: I am getting the error 405. i.e "Method Not Found"
  For POST: Bad Request</p>
  
  <p>vvmsUrl: is the path to xml file</p>
  
  <p>Our get is working fine, but not the PUT/POST.</p>
  
  <p>PUT Code:</p>
  
  <p>vvmsUrl: is the path to xml file</p>
  
  <pre><code>var XMLData= "&lt;origin&gt;ABCbfk&lt;/origin&gt;";
         jQuery.ajax({
          type: "PUT",
          url: vvmsUrl,
          contentType: "application/xml",
          headers: { 'Prefer' : 'persistent-auth',
                     'Access-Control-Allow-Methods': 'PUT'},
          dataType: "xml",
          processData: false,
          crossDomain: true,
          data: XMLData,
          success:function(msg)
          {
             alert("hello"+msg);
          },
          error: function(msg){
          alert("Error"+msg);
          LOG(xhr.status);
          }
      });
  </code></pre>
  
  <p>I am stuck from 2 days. I am not getting what goes wrong in this. </p>