Ryan,
Dispatch/Provider are mainly used when you want to dynamically invoke an
endpoint without any code generation.
They can also be used when you (the developer) does not want to use JAXB
for the databinding. Dispatch and
Provider also allow you to send the entire message (SOAP message or just
XML) so you don't have to use SOAP
to send a message. Generally speaking, if you are trying to hit an
endpoint that is described with a WSDL you would
want to use a static stubs; however, you are of course not required to.
If you are trying to hit an endpoint that is
not described by a WSDL, such as a RESTful application, the Dispatch
interface can be used.
Ryan LeCompte wrote:
> Hello all,
>
> Could anyone please shed some light on when/why it’s appropriate to
> use the new Dispatch/Provider support in JAX-WS as opposed to static
> stubs? Does the Dispatch/Provider assist at all with maintaining
> multiple versions of web services?
>
> Thanks,
>
> Ryan
>
--
- Doug