users@glassfish.java.net

Re: WS client and a variable end point location ??

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Jun 2007 03:55:53 PDT

See this
http://forums.java.net/jive/thread.jspa?threadID=1168

You can set the endpoint address using BindingProvider.ENDPOINT_ADDRESS_PROPERTY

Something like this should work for you.

((BindingProvider)stub).getRequestContext().put(
BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "...");
[Message sent by forum member 'raharsha' (raharsha)]

http://forums.java.net/jive/thread.jspa?messageID=224441