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