When you need to overwrite endpoint property you can do it following,
((BindingProvider)portimpl).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://myhost/myservice/myport");
Note: This sets only instance of "portimpl" object, when you create new port default or genarted address assigned.
Warn: When you use dynamic/multiple server based on request you need to properly synchronize or recreate port object.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment