The Dispatch
interface is a low-level JAX-WS API that allows you work directly with raw
messages. It accepts and returns messages, or payloads, of a number of types including DOM objects, SOAP messages, and JAXB
objects. Because it is a low-level API, the Dispatch
interface does not perform any of the
message preparation that the higher-level JAX-WS APIs perform. You must ensure that the messages, or payloads, that you pass to
the Dispatch
object are properly constructed, and make sense for the remote operation being
invoked.