Wade Chandler wrote:
I have services that will attach large attachments or
have long running operations before a return will
occur. I want to simply fall off the map if the
cancel button has been clicked. Does Axis provide
this cabability? I want to cancel Call.invoke
operations.
Wade,
The important point here is that SOAP is a message passing protocol.
When you use Call.invoke all that happens is that a message is
constructed and sent to the specified endpoint and then (optionally) the
code waits for a message to come back. The send / return pattern is
optional though, there's no formalism to define a state on the service
which could be canceled.
The upshot of this is that if you want the functionality you describe
you'll have to implement it yourself by creating another 'method' in
your service which has the ability to cancel the computation on your
side. You'll then obviously need some way of describing the session you
want to cancel so you'll probably have to move to a pattern with a
'create' method returning an ID to then be used in 'getResults' or
'cancel' methods.
Cheers,
Tom