title: PhoneGap Android Web Service response using jQuery is NOT coming
body: <p>We are developing a small contact store application using PhoneGap framework. We have a webservice to perform operations for creating, updating, reading and deleting a contact. We are using the following code to make a SOAP request to create a contact. We are using jQuery and jquery mobile <a href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.js" rel="nofollow">http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.js</a>. The following code is working with iPhone simulator and iPhone. But we are not even getting the response on Android and Android emulator. We greatly appreciate your help.</p>
  
  <pre><code>var settings = {requestType:"soap1.1",
         error:function(XMLHttpRequest, textStatus, errorThrown){
         throw XMLHttpRequest.responseText;
       }};
   var oBuffer = new Array();
   settings.requestType = "soap1.1";
   settings.methodType = "POST";
   settings.contentType = "text/xml";
   settings.url = "http://example.com/checkdatpriceservice.asmx";
   settings.dataType = "text/xml";
   settings.nameSpace = "http://tempuri.org/";
   settings.methodName = "VerifyUser";
  
   oBuffer.push('&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;');
   oBuffer.push("&lt;soap:Body&gt;");
    oBuffer.push('&lt;VerifyUser xmlns="http://tempuri.org/"&gt;');
      oBuffer.push('&lt;email_id&gt;abcd@example.com&lt;/email_id&gt;');
      oBuffer.push('&lt;password&gt;user123&lt;/password&gt;');
    oBuffer.push("&lt;/VerifyUser&gt;");
     oBuffer.push("&lt;/soap:Body&gt;");
   oBuffer.push("&lt;/soap:Envelope&gt;");
   settings.requestData = oBuffer.join("");
   alert("requestData:" + settings.requestData);
   $.ajax({
     type: settings.methodType,
     cache: false,
     url: settings.url,
     data: settings.requestData,
     contentType: settings.contentType,
     dataType: settings.dataType,
     error: function(status){ alert("An error occurred in processing your request");},
     success: function(data, testStatus){
       alert('data = ' + data);
       $('#testp').html(data);
     },
     beforeSend: function(XMLHttpRequest){
       if (settings.requestType == "soap1.1" || settings.requestType== "soap1.2")
         XMLHttpRequest.setRequestHeader("SOAPAction",settings.nameSpace + settings.methodName);
       XMLHttpRequest.setRequestHeader("Content-Length",settings.requestData.length);
       XMLHttpRequest.setRequestHeader("Connection", "close");
     }
   });
  </code></pre>