You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sam <sa...@gmail.com> on 2008/01/10 16:27:28 UTC
Does wsdl2java delete toString method?
Hi, I'm trying to override the toString method in beans re-generated
by wsdl2java and it seems to be deleting this code. Is it an expected
behaviour or there is something wrong with my code?
Thanks in advance for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Does wsdl2java delete toString method?
Posted by Sam <sa...@gmail.com>.
Yes, you're right, I realized that later, I have the java beans, I run
java2wsdl and then wsdl2java, so the code is overwritten.
Is there some other way to avoid losing the custom methods (like
toString) and still re-generating the code each time? I couldn't find
any solution..
Thanks for your answer.
On Jan 19, 2008 2:02 PM, Afkham Azeez <af...@gmail.com> wrote:
> Did you implement toString in a generated class, and then regenerate the
> code? In that case, your changes will be overwritten. Anyway, it is not
> generally advisable to mess with auto generated code unless you are certain
> that you are not going to regenerate this code.
>
> Azeez
>
>
>
> On Jan 10, 2008 8:57 PM, Sam <sa...@gmail.com> wrote:
> >
> >
> >
> > Hi, I'm trying to override the toString method in beans re-generated
> > by wsdl2java and it seems to be deleting this code. Is it an expected
> > behaviour or there is something wrong with my code?
> >
> > Thanks in advance for your help!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Thanks
> Afkham Azeez
>
> http://www.wso2.org
> GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Does wsdl2java delete toString method?
Posted by Afkham Azeez <af...@gmail.com>.
Did you implement toString in a generated class, and then regenerate the
code? In that case, your changes will be overwritten. Anyway, it is not
generally advisable to mess with auto generated code unless you are certain
that you are not going to regenerate this code.
Azeez
On Jan 10, 2008 8:57 PM, Sam <sa...@gmail.com> wrote:
> Hi, I'm trying to override the toString method in beans re-generated
> by wsdl2java and it seems to be deleting this code. Is it an expected
> behaviour or there is something wrong with my code?
>
> Thanks in advance for your help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Thanks
Afkham Azeez
http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760