How do I cancel a running AXIS 1.4 SOAP request?

Is it possible to cancel a SOAP request (Axis 1.4, Java 1.6) that is currently running?

I am using interfaces built with WSDL2Java, so the call looks like myProvider.submitMyRequest(request)

. This is synchronous and does not return until a response is received. I want to be able to interrupt a call based on an external condition. Couldn't kill the thread that is executing the request, what are my options?

+2


a source to share


1 answer


I couldn't find a way. The closest solution I have found is to set a timeout in the Stub class (throw myProvider to Stub) and run the request on a thread that can be abandoned before the timeout, without blocking the rest of the system.



+1


a source







All Articles