Hi Jörg, I use to generate the Java classes into a seperate directory and with the option helpergen="true", which generates seperate helper classes with the SOAP specific stuff. After that I move the *Helper, *Service, *ServiceLocator and *SoapBindungStub files into a separate package of my source directory and modify the import statements accordingly. The generated bean classes get deleted. My hand-coded bean classes with comments, toString etc. don't get touched and stay independent of SOAP specific things. That's all quite easy to do if you use an Ant build file for it.
Regards, Peter Landmann > -----Original Message----- > From: Joerg Buchberger [mailto:[EMAIL PROTECTED] > Sent: Friday, 11 July 2003 5:37 PM > To: [EMAIL PROTECTED] > Subject: java2wsdl2java deletes code in beans > > > Hi. > > When I define a web service by creating an interface, which > includes some bean > classes, and then use java2wsdl2java the stubs and > serializable bean classes > get generated. > > For some reason, the axis generated serializable bean > classes' methods are > stripped of original code (validity checks etc.) and any > additional methods, > such as toString get deleted as well. This is a little > inconvenient since that > means copying that code back into the bean classes after > using axis tools. > > Is there any way to avoid this? > > Thanks for any hints. > > Cheers, > Joerg