android-ksoap2

KSoap Request Timeout?


friends,

i dont see request timeout in KSoap library

any one guide me what should i do? or from where to download latest version of it?

my code

 SoapObject userRequest=new SoapObject(NAMESPACE, METHOD_NAME); 
                userRequest.addProperty("session_id", session_id ); 
                userRequest.addProperty("page_size", PageSize); 
                userRequest.addProperty("offset",Offset ); 


                SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); 
                request.addProperty("GetAlertsInput", userRequest); 


                SoapSerializationEnvelope envelope = new 
SoapSerializationEnvelope(SoapEnvelope.VER11); 
                envelope.bodyOut = request; 


                HttpTransportAndroid androidHttpTransport = new 
HttpTransportAndroid(URL); 


 androidHttpTransport.call(SOAP_ACTION_GETALERTS, envelope); 

any help would be appreciated.


Solution

  • Could mention that I made a modification to the KSoap2 v2.5.2 to support timeout for HttpTransportSE class. It will throw a SocketTimeoutException when timeout occurs.

    It's both jar and src is found at this url https://www.lightsoftai.com/?p=707