Basic Web Service Question
Hello, I am researching Web services as an alternative technology for my organization to a proprietary request/response model we are using now. Forgive me if my question sounds basic, but I've googled just about every keyword I could think of to get the answer but couldn't. From what I've read so far of Java web services for Java EE, I see a potential problem in implementing it in my organization's architecture.
In writing clients to the web service, it seems you can either put the service location as either an annotation in code, or by generating stub files. In both cases you have an absolute URL coded somewhere. How does this work in an environment where there are "Test" servers and "Production" servers. It appears you can't "flip the switch" from test to production without changing annotations/re-generating the stub files to look to the production server. Is Dynamic client invocation the only answer to this, or is there some elegant mechanism already built in that handles this scenario? Thanks for your answer.

