users@glassfish.java.net

JAX-WS artifacts work with endpoit changes

From: <glassfish_at_javadesktop.org>
Date: Thu, 16 Aug 2007 16:01:16 PDT

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 :

http://foo.acme.com/services/SampleService
http://bar.acme.com/services/SampleService

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!!
[Message sent by forum member 'ciro_rezende' (ciro_rezende)]

http://forums.java.net/jive/thread.jspa?messageID=231241