This is part of the JAX-WS spec:
port = service.getYYYPort(...);
((BindingProvider)port).getRequestContext().put(
BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://blah.blah.com/blah");
Then invoke.
Dan
On Tue December 29 2009 11:06:36 am Alex wrote:
> hi out there,
>
> I generate my client code via wsdl2java, I have already found a solution to
> override the wsdl-location.
>
> ClassLoader cl = Thread.currentThread().getContextClassLoader();
> if ( null == cl ){
> cl = InitClient.class.getClassLoader();
> }
> InitClient.WSDL_LOCATION = cl.getResource( "description/myservice.wsdl" );
> MyService service = new MyService(InitClient.WSDL_LOCATION,
> InitClient.SERVICE_NAME);
>
> But I didn't find a way how to override the endpoint-address.
>
> thank you, alex
>
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog