make JAX-WS work with endpoint changes
Hi dear fellows!
Sorry for the poor english (iÂ´m brazilian). IÂ´d like to ask a question:
LetÂ´s suppose that I have a Web Service in a Production environment.
I get itÂ´s WSDL and use wsimport to generate artifacts to build a client application.
Ok Â´till there, the client works fine and the web service is consumed.
Now letÂ´s say that I have exactly the SAME web service, deployed in another server.
Just explaining, the endpoits point to :
So, as said before, I generated the client for the service at foo.acme.com, and itÂ´s being used by several hundreds of aplications that use my client to consume the web service.
So now, letÂ´s suppose that I need, for any reason, start comsuming the service at bar.acme.com (itÂ´s the same service, just located elsewhere), abandoning foo.acme.com. The point is that many people are using the client to access the web service, and I canÂ´t re-generate the artifacts and recompile and rebuild the client and re-distribute it to the people because the endpoit will change.
I know that I can build the client using Dispatch, but thatÂ´s not the point.
Do you know how can I dynamically change the endpoint to the web service without need to rebuild the artifacts?!?!
Any help would be appreciated!
Thanks in advance!!