Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 68096 invoked from network); 11 Apr 2007 15:08:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 15:08:26 -0000 Received: (qmail 79817 invoked by uid 500); 11 Apr 2007 15:08:22 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 79795 invoked by uid 500); 11 Apr 2007 15:08:22 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 79757 invoked by uid 99); 11 Apr 2007 15:08:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 08:08:22 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 08:08:15 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HbeQN-0001cE-26 for axis-user@ws.apache.org; Wed, 11 Apr 2007 08:07:55 -0700 Message-ID: <9941555.post@talk.nabble.com> Date: Wed, 11 Apr 2007 08:07:55 -0700 (PDT) From: Anil VVNN To: axis-user@ws.apache.org Subject: Re: [Axis2] wsdl2java overriding my files In-Reply-To: <461CEE5A.9060203@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: vvnn_anil@yahoo.com References: <9921386.post@talk.nabble.com> <461BA61C.8020603@gmx.at> <9921989.post@talk.nabble.com> <461BAF8D.1070900@gmx.at> <9922483.post@talk.nabble.com> <461BB60A.90605@gmx.at> <9936923.post@talk.nabble.com> <461CEE5A.9060203@gmx.at> X-Virus-Checked: Checked by ClamAV on apache.org Thanks. I even tried putting ".overwrite" file under base dir and listed all the Java files which I want wsdl2java tool to generate those files only but didn't help either. Philipp Leitner-2 wrote: > > OK, after your last posting I was finally able to understand what you > actually want to do :-) > > -- you have generated stubs with wsdl2java in the past, changed them and > are now re-running wsdl2java, and want to somehow preserve your changes. > > I am quite sure that this is not possible with Axis or Axis2 - simply > because the logic necessary behind such a feature would be tremendious. > You would have to know what the file looked like originally, do kind of > a 'diff' between the original and the changed version, generate the new > stubs and (and this is the really hard part) know where to put the > changes so that they are 'semantically equivalent'. I daresay this is in > general impossible. > > /philipp > > Anil VVNN schrieb: >> I couldn't able to find the solution yet. Could somebody shed light on >> this. >> Thanks. >> >> >> Philipp Leitner-2 wrote: >>> Hmm, I might be wrong, but I think that the package that wsdl2java >>> generates the data objects to depend on the namespace of these objects >>> in the WSDL file ... but I am quite sure that there is some way you can >>> overwrite this with a parameter (can't check right now). Best if you dig >>> into the wsdl2java source and look yourself. >>> >>> /philipp >>> >>> Anil VVNN schrieb: >>>> Philipp, >>>> >>>> Unfortunately, this did not work. This is what I did, >>>> >>>> >>>> >>>> Actually its generating some of the files (Stub, Skeleton and >>>> MessageReceiverInOut) to "com.myprj.webservice.generated" folder but >>>> other >>>> wrapper objects of complex types are still writing to >>>> "com.myprj.webservice" >>>> folder. >>>> >>>> Did I miss anything. Thanks. >>>> >>>> >>>> >>>> Philipp Leitner-2 wrote: >>>>> The thing is, you should let these files be generated into a >>>>> /different/ >>>>> package :-) >>>>> >>>>> Try >>>>> >>>>> >>>>> >>>>> This should do the trick. >>>>> >>>>> /philipp >>>>> >>>>> Anil VVNN schrieb: >>>>>> Philipp, >>>>>> >>>>>> Are you referring to "" in my >>>>>> ant >>>>>> script. if so, I removed this line but it is still overriding the >>>>>> files >>>>>> under com.myprj.webservice directory. >>>>>> >>>>>> Observed that it is not overriding code of Stub, Skeleton and >>>>>> MessageReceiverInOut but it is overriding wrapper objects of complex >>>>>> types. >>>>>> >>>>>> What I mean is, here is my wsdl file, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> type="tns:Transporter"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> nillable="true" >>>>>> type="xsd:string"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Transporter is an Interface and ABCTransporter implementation class >>>>>> in >>>>>> my >>>>>> object model. But I want to modify corresponding wrapper objects >>>>>> (Transporter and ABCTransporter ) created by wsdl2java, so I did but >>>>>> when I >>>>>> run wsdl2java again, it creates new wrapper objects of Transporter >>>>>> and >>>>>> ABCTransporter and I loose my changes. >>>>>> >>>>>> Any ideas how would I do to not to override these wrapper objects. >>>>>> Thanks. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Philipp Leitner-2 wrote: >>>>>>> you should pass a target package as argument to wsdl2java to prevent >>>>>>> it >>>>>>> from overriding existing source files. >>>>>>> >>>>>>> /philipp >>>>>>> >>>>>>> Anil VVNN schrieb: >>>>>>>> Hi, >>>>>>>> >>>>>>>> Any option to not to override files if they are already present. As >>>>>>>> I >>>>>>>> have >>>>>>>> modified few classes (wrapper objects of complex types) and >>>>>>>> skeleton >>>>>>>> code. >>>>>>>> >>>>>>>> Here is my call in ant scripts, >>>>>>>> >>>>>>>> >>>>>>> classpathref="axis.classpath"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Thanks. >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >>>>>>> For additional commands, e-mail: axis-user-help@ws.apache.org >>>>>>> >>>>>>> >>>>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >>>>> For additional commands, e-mail: axis-user-help@ws.apache.org >>>>> >>>>> >>>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >>> For additional commands, e-mail: axis-user-help@ws.apache.org >>> >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9941555 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org