users@jax-ws.java.net

Re: JAX-WS: Static stubs or Dispatch/Provider?

From: Doug Kohlert <Doug.Kohlert_at_sun.com>
Date: Sat, 26 Nov 2005 09:23:44 -0800

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