axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vyacheslav Yakovenko" <>
Subject Re: Newbie Ques: A way not to hardcode the URL
Date Wed, 27 Dec 2006 09:46:54 GMT
There are simple decisions:

   1. Extend you XXXSkeleton, for example: class XXX extends XXXSkeleton;
   2. Make changes into your services.xml, for example change

<parameter locked="false" name="ServiceClass">
<parameter locked="false" name="ServiceClass">

Make your changes only into your class!
3.Hardcoded URI      contains in the XXXStub not in the XXXSkeleton, but
there is another method public
SessionManExampleServiceStub(java.lang.StringtargetEndpoint)  that
allows to specify concrete endpoint. You can extract
this information into properties file of course.


On 12/27/06, Sandeep Gupta <> wrote:
> Hi,
> We are consuming a web-service in our project, and for this we use Axis
> WSDL2JAVA tool to build skeletons and stubs. Now the webservice URL we use
> for development and production are different. The skeletons generated
> contain the hard-coded URL. Is there a way that we could not hard-code the
> URL and pick-up from another source at runtime.... we wish not to modify the
> generated skeletons, for the build process to remain automated.
> Every suggestion/hint are most most welcome.
> Thanks in advance.
> Regards,
> Sandeep Gupta
Sun Certified Programmer for Java 2 Platform
gTalk, msn:
icq: 196335325

View raw message