title: overriding or setting web service endpoint at runtime for code generated with wsimport
body: <p>Using code that was generated with <code>wsimport</code>, can the service endpoint be overridden without having to regenerate the code?</p>
  
  <p>I have written a simple java webservice, following are the steps:</p>
  
  <ol>
  <li>I compile the java class and generate a war file</li>
  <li>Deploy the war file to my app server (tomcat)</li>
  <li>Access the WSDL via the URL e.g. localhost:8080/service/helloservice?wsdl</li>
  <li>use the URL with wsimport.bat to generate client classes for example: <code>wsimport http://localhost:8080/service/helloservice?Wsdl</code></li>
  <li>I use those classes in my client app to call the service</li>
  </ol>
  
  <p>The problem is that is the service is deployed on an app server running on port other than 8080, the communication between client and service never happens. I am trying to know what is the best way to create stubs that does not have server and port hardcoded in the stub used by the client.</p>