On 7/31/2013 12:30 AM,
zigz...@yahoo.com wrote:
> Subject: Axis2 web service How to Make Web Service Address Configurable
> Now location is here is hardcoded to refer to some address. Now I am
> using wsdl2java to generate code. But code has address hardcoded. Since
> this address can change from dev to qa to prod. How can I make generated
> code independent of address; i.e., generated code will work across all
> environments.
>
> I am new to axis2 and this code generation, so appreciate any guidance,
If you use stub generated by Java SE wsimport, then you can specify the
URL of the WSDL in the service constructor.
If you make a manual call using standard JAX-WS, then you specify
the URL of the WSDL in the service create method.
If you use stub generated by Axis2 WSDL2Java or codegen ant task, then
you can specify the URL of the service itself in the service
constructor.
Arne