Dies,

Thanks for the reply!

Joshua



Dies Koper <[EMAIL PROTECTED]>

05/08/2006 07:56 PM
Please respond to axis-user

       
        To:        [email protected]
        cc:        
        Subject:        Re: How to avoid hardcoding the location of wsdl file in generated    source?



Hello Joshua,

Set the URL yourself in your client:

import javax.xml.rpc.*;
[...]
                ServiceFactory sf = ServiceFactory.newInstance();
                YourService service = (YourService)sf.loadService(YourService.class);

                YourSEI remote = service.getYourSEI();

                String url = "">                 ((Stub)remote)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);

Load the url from a property file or pass it as argument to your client.

Regards,
Dies

[EMAIL PROTECTED] wrote:
> When using the axis-wsdl2java ant task, the location of the wsdl file gets hard
> coded in the generated client code.  I need to move my app between environments
> without having to recompile.  How do I prevent this from happening?  Is there
> another alternative?
>
> Regards,
>
> Joshua





*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

Reply via email to