我使用ksoap lib连接到我的Web服务 我的情景是
但我不知道如何在运行后取消通话方法 这是我的通话方法
SoapObject request=null;
request = new SoapObject(NameSpace,Operation);
request.addProperty(propertys.get(i));
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
Log.d(tag, "request="+request);
HttpTransportSE httpTransport = new HttpTransportSE(db.getWebsiteAddress()+ db.getWebserviceName());
Object response = null;
try {
httpTransport.call(db.getNameSpace()+Operation, envelope);
response = envelope.getResponse();
} catch (Exception exception) {
response = exception.toString();
exception.printStackTrace();
}
所以我的问题是,有没有取消httpTransport.call方法?
谢谢你的帮助。