I am calling the web service from my Android app. I have many different calls to this service through the application, and each of them returns data in less than a second, with the exception of one. One of my calls may take up to a minute to return data, even if the actual web service call is close instantly. The problem arises with the line:
transport.call(SOAP_ACTION, soapEnvelope);
This is called, and the value is returned from the web service almost instantly. But it may take up to a minute to reach the next line:
SoapObject result = (SoapObject) soapEnvelope.bodyIn;
What happens between the web service that returns the data and the application gets to the next line (see above)? Is there a way to reduce this delay? Is there something simple to check?
source
share