我正在使用此代码通过 ksoap2 调用 webservice 方法:
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();
在某些情况下,webservice 不会立即响应我的请求,并且应用程序正在排队等待androidHttpTransport.call(soapAction, envelope);
并且用户想要取消请求。如何让用户取消该call
方法?