Closed GoogleCodeExporter closed 8 years ago
I'm running ksoap2-android-assembly-2.5.6-jar-with-dependencies.jar and am
having the same issue. The timeout value seems to be ignored.
Original comment by jam.mon...@gmail.com
on 1 Jul 2011 at 2:05
Hi
I'm partialy solved catching this events:
catch (SoapFault e) {
return false;
}
catch (XmlPullParserException e)
{
return false;
}
catch (IOException e) {
return false;
}
catch(Exception e)
{
e.printStackTrace();
And checking internet conection before call ws.
if (checkInternetConnection() == false)
{
/ return false;
}
The method
public static boolean checkInternetConnection()
{
ConnectivityManager cm = (ConnectivityManager) trpda.contexto.getSystemService(Context.CONNECTIVITY_SERVICE);
// test for connection
if (cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isAvailable() && cm.getActiveNetworkInfo().isConnected())
{
return true;
}
else
{
return false;
}
}
I hope you can work with this.
Original comment by miguelca...@gmail.com
on 1 Jul 2011 at 3:27
See related issue 52.
Original comment by jam.mon...@gmail.com
on 1 Jul 2011 at 3:27
I might have fixed this with the changes I did for issue 52. Try it out.
Original comment by mosa...@gmail.com
on 5 Jul 2011 at 6:07
will be out 2.5.7
Original comment by mosa...@gmail.com
on 6 Jul 2011 at 10:57
Original issue reported on code.google.com by
miguelca...@gmail.com
on 13 Jun 2011 at 5:27