Note that there are some explanatory texts on larger screens.

plurals
  1. POSoap query with jQuery / Phonegap always fail on Android
    primarykey
    data
    text
    <p>I developed an iPhone/Android app with jQuery mobile &amp; Phonegap (now Cordova). This app use different services with no problem. One of this services is a Soap one so i use the jsSOAPClient (jquery.jqSOAPClient.js) for jQuery in order to request the service. I have no problem at all from an iOS device but the query always fail on Android. </p> <p>In jsSOAPClient the request looks like that :</p> <pre><code> function getResponse(xData, status) { if(!!callback) { SOAPClient.Status = xData.status; SOAPClient.ResponseText = xData.responseText; SOAPClient.ResponseXML = xData.responseXML; callback(xData.responseXML); } } $.ajax({ type: "POST", url: SOAPClient.Proxy, dataType: "xml", processData: false, data: content, complete: getResponse, beforeSend: function(req) { req.setRequestHeader("Method", "POST"); req.setRequestHeader("Content-Length", SOAPClient.ContentLength); req.setRequestHeader("Content-Type", SOAPClient.ContentType + "; charset=\"" + SOAPClient.CharSet + "\""); req.setRequestHeader("SOAPServer", SOAPClient.SOAPServer); req.setRequestHeader("SOAPAction", soapReq.Action); } }); </code></pre> <p>The "getResponse" "status" value is "error" and the "SOAPClient.Status" (equal to "xData.status") value is "0".</p> <p>The server seems to not receive request at all...</p> <p>I repeat that the same code with the same request datas have results on iOS.</p> <p>Thanks for help. </p> <p>/<strong><em></strong> EDIT <strong></em>*</strong>/ I tried to comment the line :</p> <pre><code>//type: "POST", </code></pre> <p>it seems to work, i mean i have a 200 status code in this case even if i have a parse error due to the unexpected response format. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload