title: Call SOAP-XML Web Services with jQuery Ajax - Minified implementation?
body: <p>I'm using the following straight-forward jQuery implementation</p>
  
  <pre><code>    var soapMessage = '&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;\
      &lt;soap:Body xmlns:ns1="http://site.com/"&gt;\
          &lt;ns1:insertLocationElement&gt;\
              &lt;ns1:location&gt;\
                  &lt;ns1:locationName&gt;' + sName + '&lt;/ns1:locationName&gt;\
                  &lt;ns1:locRadius&gt;' + sRadius + '&lt;/ns1:locRadius&gt;\
                  &lt;ns1:lngGPS&gt;' + gLongitude + '&lt;/ns1:lngGPS&gt;\
                  &lt;ns1:latGPS&gt;' + gLatitude + '&lt;/ns1:latGPS&gt;\
                  &lt;ns1:locationAddress&gt;' + sAddress + '&lt;/ns1:locationAddress&gt;\
              &lt;/ns1:location&gt;\
          &lt;/ns1:insertLocationElement&gt;\
      &lt;/soap:Body&gt;\
  &lt;/soap:Envelope&gt;';
  
      $.ajax({
          type : "POST",
          url : service,
          data : soapMessage,
          contentType : "text/xml; charset=ansi",
          dataType : "xml",
          success : AjaxSucceededInsert,
          error : AjaxFailedGeneral
      });
  </code></pre>
  
  <p>I was wondering - is there any other way to call such web services, without including the whole SOAP envelope? it makes the code utterly unclean IMO.</p>