users@jax-ws.java.net

Re: Client side generated files

From: Rama Pulavarthi <Rama.Pulavarthi_at_Sun.COM>
Date: Thu, 21 Dec 2006 15:15:38 -0800

You can always instantiate the service with new wsdl location and
service QName like,
HelloService service = new HelloService(wsdl_locations,serviceQname);

It overrides the default wsdl used for creating the artifacts.

thanks,
Rama Pulavarthi
Dima Gutzeit wrote:
> Hi,
>
> I am developing both sides of a webservice using jax-ws.
> Upon generation of client side classes, wsimport generates files with
> embedded url location of wsdl.
>
> url = new URL("http://192.168.1.12:8080/ws/CommonsService?wsdl")
>
> and
>
> wsdlLocation = "http://192.168.1.12:8080/ws/CommonsService?wsdl"
>
> What if I do not know what the exact location of the wsdl would be at
> deployment time ? What if I want to reuse the client side jar for
> several ws servers (for redundancy) ?
>
> Is there a way to generate client side code that would accept
> parameters (ip, wsdl location ?) in the time of service initialization
> from within client side code, or should I do it by myself, by changing
> the automatically generated files ?
>
> Regards,
> Dima Gutzeit.
>
> ---------------------------------------------------------------------
> 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
>