users@jax-ws.java.net

Re: Dispatch and Service

From: Kathy Walsh <Kathleen.Walsh_at_Sun.COM>
Date: Wed, 02 Nov 2005 08:25:50 -0500

Sameer-

There are two types of Service, the generated Service class(ie HelloService)
which jax-ws calls a static service, and the jax-ws dynamic Service.
The methods for the dynamic Service are:

Service service = Service.create(QName serviceQName);
Service service = Service.create(URL wsdlURL, QName serviceQName);

Using the first static method no knowledge of the wsdl is needed.

Hope this answers your question.

Regards,
Kathy

Sameer Tyagi wrote:

> Is there a way to use the Dispatch API in the client without parsing
> the WSDL ?
> My guess was no because, To get to the Dispatch, you need the Service
> and the
> ServiceFactory seems to have been removed...
> So to create an instance of the Service you need the WSDL specific
> Service class...
>
> Am I right ?
>
> /s
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>