I'm using ws-client in a Grails Project to call an web service.
It's ok, but it's reading endpoint from WSDL.
How to change endpoint in runtime?
def proxy = new WSClient(wsdlURL, Thread.currentThread().getContextClassLoader());
proxy.setEndpoint(''); // this doesn't exists, ERROR!
Thanks!
Note: Need I use BindingProvider.ENDPOINT_ADDRESS_PROPERTY
to solve this?