I am using this code for calling webservice method by ksoap2:
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(url,
TimeOutInSeconds * 1000);
try {
androidHttpTransport.call(soapAction, envelope);
} catch (Exception e) {
}
SoapObject so = (SoapObject) envelope.getResponse();
In some situations webserivce does not response to my request immediately and app is waiting at line androidHttpTransport.call(soapAction, envelope);
and user wants to cancel the request. How can I let user to cancel the call
method?