Using DataSource objects with JAX-WS Dispatch
Dispatch objects can use objects that implement the javax.activation.DataSource interface when the following conditions are true:
-
the Dispatch object is using the HTTP binding.
-
the Dispatch object is using message mode.
DataSource objects provide a mechanism for working with MIME typed data from a variety of sources including URLs, files, and byte arrays.