title: How to see the SOAP request data what I am sending using JQuery AJAX
body: <p>I am using Jquery to create soap request. Following is required envelop for soap request.</p>
  
  <pre><code>POST /netforumaiatest2/xweb/secure/netforumxml.asmx HTTP/1.1
  Host: amstest.aia.org
  Content-Type: text/xml; charset=utf-8
  Content-Length: length
  SOAPAction: "http://www.avectra.com/2005/Authenticate"
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      &lt;Authenticate xmlns="http://www.avectra.com/2005/"&gt;
        &lt;userName&gt;string&lt;/userName&gt;
        &lt;password&gt;string&lt;/password&gt;
      &lt;/Authenticate&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I wrote the code in jquery</p>
  
  <pre><code>var soapMessage='&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soap:Body&gt;&lt;Authenticate xmlns="http://www.avectra.com/2005/"&gt;&lt;userName&gt;user&lt;/userName&gt;&lt;password&gt;pass&lt;/password&gt;&lt;/Authenticate&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;';
  
      $.ajax({
      url: productServiceUrl,
      type: "POST",
      dataType: "xml",
      data: soapMessage,
      complete: endSaveProduct,
      contentType: "text/xml; charset=\"utf-8\""
             });
  </code></pre>
  
  <p>but in endSaveProduct, i am getting <code>status = error</code>. How can i see the data what i am sending by <code>$.ajax call</code>. please help me.</p>