Hi Derek,
Thanks for prompt reply.
 
My Problem is that,
In my Java Project, I have written some classes in packages e.g "Package1".
My Web Service classes refer to these classes in "Package1".
 
When I run WSDL2Java command, it generates the referred classes also in "Package1" overwriting the original classes, and generates Web Service stub in another specified package.
 
I don't want WSDL2Java to overwrite Classes in "Package1" which would be used by other projects also.
Is there any way to do this?
 
Amit
 

 
On 7/31/06, Derek <[EMAIL PROTECTED]> wrote:
What I do is have my ANT script set up to run WSDL2Java to put files in a different source tree, 'build/generatedSrc', which has the same structure as my 'src' tree.
 
Then I have an ANT target which generates files into the 'generatedSrc' tree.
 
If I want to modify a file (a skeleton file, for instance), I copy the file from my generatedSrc tree to my src tree, modify it as desired, and then modify my ANT script to automatically delete it from the generatedSrc tree after each time that WSDL2Java is run.
 
That way, I can be sure that none of my modified files have been overridden. I think it's unwise to generate files into a directory where non-generated files sit. (Also, keeping them separate allows me to make sure, for instance, that the generated files don't get checked into version control.)
 
When compiling, I just include both source tree roots in the 'javac' ANT target.
 
Derek
-----Original Message-----
From: Amit Andhale [mailto: [EMAIL PROTECTED]]
Sent: Monday, July 31, 2006 12:34 AM
To: [email protected]
Subject: Axis 1.3 WSDL2Java Overwrites the original files

Hi All,
When I run WSDL2Java command, it generates the Stub files, which also overrides my existing files.
Could you please help me in this context?
 
Regards
Amit

Reply via email to