Using code that was generated with wsimport, can the service endpoint be overridden without having to regenerate the code?
I am following below steps to generate war.
1.Deploy the war file to my app server (tomcat)
2.Access the WSDL via the URL e.g. localhost:8080/service/helloservice?wsdl
3.use the URL with wsimport to generate client classes for example: wsimport -keep http://localhost:8080/service/helloservice?Wsdl
4.packaged all the class file in a jar CWSClient and put that in buildpath
5.I use those classes in my client app to call the service
The problem is that is the service is deployed on an app server running on diferent environment, 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.