Invoke a service operation asynchronously. The
method returns without waiting for the response to the operation
invocation, the results of the operation are communicated to the client
via the passed in handler.
The client is responsible for ensuring that the
msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.
Returns:
A
Future
object that may be used to check the status
of the operation invocation. This object must not be used to try to
obtain the results of the operation - the object returned from
Future>.get()
is implementation dependent
and any use of it will result in non-portable behaviour.
Parameters:
-
msg - An object that will form the message or payload of
the message used to invoke the operation.
-
handler - The handler object that will receive the
response to the operation invocation.
Throws:
-
WebServiceException - If there is any error in the configuration of
the
Dispatch
instance