users@jax-rpc.java.net

Re: Same WSDL different environment - help please

From: Bobby Bissett - Javasoft <robert.bissett_at_sun.com>
Date: Mon, 22 Mar 2004 12:27:47 -0500

> From a very uninformed point of view, I would think that you'd want to
> have your WSDL generated at WSDL-request time and have it variable
> depending on the environment it is hosted on. Therefore, you would
> essentially have different WSDL files for each environment.

If the different environments are 3 different machines, then with the
jaxrpc si you can simply deploy the war file on all three machines. The
jaxrpc servlet will take care of changing the address in the wsdl file
for you to match the machine where it is located.

For instance, if you deploy the same war file on host1 and host2, then
the wsdl file at http://host1/service/endpoint?WSDL will have the
"host1" address in the location attribute and
http://host2/service/endpoint?WSDL will have the "host2" address.

Cheers,
Bobby

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net