users@jax-ws.java.net

Client side generated files

From: Dima Gutzeit <dima_at_mailvision.com>
Date: Thu, 21 Dec 2006 09:24:31 +0200

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.