Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid 2.2 vs 2.3 - soapaction vs SOAPAction in HTTP header
    primarykey
    data
    text
    <p>Using the <a href="http://code.google.com/p/ksoap2-android/" rel="nofollow">ksoap2</a> library (v2.6.4), SOAP version11, I'm executing a web service via a 2.3.3 emulator device. The server recognizes the requested action and provides the expected answer. The HTTP/1.1 header (debugged at the server side) contains the following:</p> <pre><code>User-Agent: ksoap2-android/2.6.0+ SOAPAction: myAction Content-Type: text/xml;charset=utf-8 Connection: close Content-Length: 1481 Host: xxx.xxx.xxx.xxx Accept-Encoding: gzip </code></pre> <p>Trying to fire up the same application - everything is the same (if there's such a thing in the IT world), same source, library, soap config, request, server etc. - but this time on a 2.2 emulator device. The server rejects the request claiming that the SOAPAction is missing from the request. Logs show that this request came with the following HTTP header:</p> <pre><code>user-agent: ksoap2-android/2.6.0+ soapaction: myAction content-type: text/xml;charset=utf-8 connection: close content-length: 1481 Host: xxx.xxx.xxx.xxx </code></pre> <p>So the SOAPAction (among other parts of the header) arrives as a lowercase parameter. The server does not recognize the lowercase "soapaction" and rejects my request. I'd need this application to work on Android 2.2+</p> <p>Any ideas where to start?</p> <p>EDIT: This is how I send my SOAP request. If that's any help.</p> <pre><code> public Object executeMyFunction(SoapObject request) throws Exception { SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); envelope.implicitTypes = false; envelope.dotNet = true; envelope.setAddAdornments(false); HttpTransportSE _ht = new HttpTransportSE(Configuration.getWsUrl()); _ht.call("myFunction", envelope); return envelope.getResponse(); } </code></pre>
    singulars
    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.
    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