Closed GoogleCodeExporter closed 9 years ago
This is still a problem in 3.1.1. It's caused by not calling
connection.disconnect() in the httpTransportSE.call code.
The hack that worked for me was adding in a header property of "Connection :
close".
ArrayList<HeaderProperty> headerPropertyArrayList = new
ArrayList<HeaderProperty>();
headerPropertyArrayList.add(new HeaderProperty("Connection", "close"));
And updating your call with ".call(SOAP_ACTION, envelope,
headerPropertyArrayList)"
Original comment by islandma...@gmail.com
on 29 Jan 2014 at 8:51
Could you provide a pull request that fixes it in master
Original comment by mosa...@gmail.com
on 29 Jan 2014 at 9:19
[deleted comment]
A pull has been requested.
This is actually an android bug and I have submitted a ticket at
https://code.google.com/p/android/issues/detail?id=65463 where I go into more
detail about why this doesn't work.
The above solution should work until the new version of ksoap is released that
has my fix. After downloading the new version, the solution is simple: When you
get this error, retry the webservice call. Android will return a working
connection and everything will be normal.
Technically webservice calls shouldn't be trusted anyway so checking for an
exception and retrying isn't a bad coding practice.
Original comment by islandma...@gmail.com
on 31 Jan 2014 at 6:39
Please test this off master and confirm
Original comment by mosa...@gmail.com
on 8 Feb 2014 at 12:26
Have same problem with 3.2
islandma...@gmail.com's hack works for me. Thanks!
Original comment by farique...@gmail.com
on 29 Mar 2014 at 7:47
Omg thx a lot Islandma(...) !!
Original comment by grosnour...@gmail.com
on 19 Aug 2014 at 5:03
Thx Islandma,That help me a lot.
Original comment by ak1...@gmail.com
on 16 Oct 2014 at 4:52
Original issue reported on code.google.com by
shixianm...@gmail.com
on 17 Oct 2013 at 2:45