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 Anil VVNN <vv...@yahoo.com> on 2007/04/10 16:52:49 UTC

[Axis2] wsdl2java overriding my files

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,

      <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
classpathref="axis.classpath">
        <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
        <arg line="-ss"/>
        <arg line="-sd"/>
        <arg line="-ssi"/>
        <arg line="-d adb"/>
        <arg line="-g"/>
        <arg line="-p com.myprj.webservice"/>
        <arg line="-o ${basedir}/ws/src/java"/>
        <arg line="-S ."/>
      </java>

Thanks.
-- 
View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9921386
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


Re: [Axis2] wsdl2java overriding my files

Posted by Anil VVNN <vv...@yahoo.com>.
Hi,

Now I understand that editing the generated files from wsdl2java is not a
good practice with the exception of skeleton code. Because if you change
wsdl in future you got to generate java files (wrapper objects) again which
will not contain changes I did manually so I got to put that code manually
again and its not a good design practice.

So, now I have a design issue, I want to implement Strategy pattern in my
service piece .Here is the problem description,

1) My service is using ADB framework and I have a requirement for a client
to send POJO to service end. So, here I have an interface and implementation
class

Transporter (Interface) --> ABCTransporter (Implementation class) under
package name "service"
So, class names are com.service.Transporter and com.service.ABCTransporter

Basically these classes have getters and setters (i.e. POJO) and I want to
pass this object (ABCTransporter) from client (Java SOAP client) to server
(webservice).

Here is the WSDL code,


    <wsdl:types>
    <schema>     
     <element name="MessageRequest"> 
        <complexType> 
            <sequence> 
                  <element name="transporter" nillable="true"
type="tns:Transporter"/> 
           </sequence> 
        </complexType> 
     </element> 
      <complexType abstract="true" name="Transporter"/> 
        <complexType name="ABCTransporter"> 
        <complexContent> 
              <extension base="tns:Transporter"> 
                         <sequence> 
                                <element name="StartDate" nillable="true"
type="xsd:string"/> 
                                <element name="EndDate" nillable="true"
type="xsd:string"/> 
                          </sequence> 
              </extension> 
        </complexContent> 
     </complexType> 
     </schema>
    </wsdl:types>
    <wsdl:message name="addRequest">
		<wsdl:part name="part1" element="tns:MessageRequest"/>
   </wsdl:message>


2) Now WSDL2Java creates wrapper objects on these message transport objects
which will create under package called "webservice" i.e.
com.webservice.Transporter and com.webservice.ABCTransporter

3) Now at the service end when the request comes in, it will receive
com.webservice.ABCTransporter thats what client is sending

        com.webservice.Transporter transporter =
(com.webservice.Transporter) msgRequest.getTransporter();
         //The following condition determines if the request is from ABC or
BCD
         if (transporter instanceof com.webservice.ABCTransporter) {

The above line is the problem with if condition, how could I get rid off if
and else conditions, can I use Strategy pattern but again I have no control
over com.webservice.Transporter & com.webservice.ABCTransporter classes as
these are generated by wsdl2java tool on top of my domain classes
com.service.Transporter & com.service.ABCTransporter

Any ideas. Thanks.

- Anil


Anil VVNN wrote:
> 
> Philipp,
> 
> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
> 
> <element name="MessageRequest">
> 	<complexType>
> 	    <sequence>
>    		<element name="transporter" nillable="true" type="tns:Transporter"/>
> 	   </sequence>
> 	</complexType>
> </element>
>       <complexType abstract="true" name="Transporter"/>
> 	<complexType name="ABCTransporter">
> 	<complexContent>
> 	      <extension base="tns:Transporter">
> 	          <sequence>
>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>                                 <element name="EndDate" nillable="true"
> type="xsd:string"/>
>                           </sequence>
> 	      </extension>
>                </complexContent>
>      </complexType>
> 
> 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,
>>> 
>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>> classpathref="axis.classpath">
>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>         <arg line="-ss"/>
>>>         <arg line="-sd"/>
>>>         <arg line="-ssi"/>
>>>         <arg line="-d adb"/>
>>>         <arg line="-g"/>
>>>         <arg line="-p com.myprj.webservice"/>
>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>         <arg line="-S ."/>
>>>       </java>
>>> 
>>> Thanks.
>> 
>> ---------------------------------------------------------------------
>> 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#a9958925
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


Re: [Axis2] wsdl2java overriding my files

Posted by Martin Gainty <mg...@hotmail.com>.
Anil-

you should be managing the outDir attribute to reflect whatever outDir 
specification you have set from a (possibly set from environment) property 
e.g.
 <property environment="env"/>
   <property name="outdir" value="env.OUTDIR"/>
</property>
you can now you use the OUTDIR environment variable set in the environment
outdir = "${env.OUTDIR}"
documentation is available at
https://ssa.usyd.edu.au/docs/easws/easws84.htm
in essence you want to create an ANT Taskdef
remember also to set gentypes option to true to re-gen the types

Please Post to ant users list as this group would definitely be able to help 
answer this query
M-

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


----- Original Message ----- 
From: "Anil VVNN" <vv...@yahoo.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, April 11, 2007 11:07 AM
Subject: Re: [Axis2] wsdl2java overriding my files


>
> 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,
>>>>>
>>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>>
>>>>> 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
>>>>>>
>>>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>>>
>>>>>> This should do the trick.
>>>>>>
>>>>>> /philipp
>>>>>>
>>>>>> Anil VVNN schrieb:
>>>>>>> Philipp,
>>>>>>>
>>>>>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>>>>>
>>>>>>> <element name="MessageRequest">
>>>>>>> <complexType>
>>>>>>>     <sequence>
>>>>>>>    <element name="transporter" nillable="true"
>>>>>>> type="tns:Transporter"/>
>>>>>>>    </sequence>
>>>>>>> </complexType>
>>>>>>> </element>
>>>>>>>       <complexType abstract="true" name="Transporter"/>
>>>>>>> <complexType name="ABCTransporter">
>>>>>>> <complexContent>
>>>>>>>       <extension base="tns:Transporter">
>>>>>>>           <sequence>
>>>>>>>   <element name="StartDate" nillable="true" type="xsd:string"/>
>>>>>>>                                 <element name="EndDate"
>>>>>>> nillable="true"
>>>>>>> type="xsd:string"/>
>>>>>>>                           </sequence>
>>>>>>>       </extension>
>>>>>>>                </complexContent>
>>>>>>>      </complexType>
>>>>>>>
>>>>>>> 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,
>>>>>>>>>
>>>>>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" 
>>>>>>>>> fork="true"
>>>>>>>>> classpathref="axis.classpath">
>>>>>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>>>>>         <arg line="-ss"/>
>>>>>>>>>         <arg line="-sd"/>
>>>>>>>>>         <arg line="-ssi"/>
>>>>>>>>>         <arg line="-d adb"/>
>>>>>>>>>         <arg line="-g"/>
>>>>>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>>>>>         <arg line="-S ."/>
>>>>>>>>>       </java>
>>>>>>>>>
>>>>>>>>> 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
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] wsdl2java overriding my files

Posted by Martin Gainty <mg...@hotmail.com>.
Anil-

you should be managing the outDir attribute to reflect whatever outDir 
specification you have set from a (possibly set from environment) property 
e.g.
 <property environment="env"/>
   <property name="outdir" value="env.OUTDIR"/>
</property>
you can now you use the OUTDIR environment variable set in the environment
outdir = "${env.OUTDIR}"
documentation is available at
https://ssa.usyd.edu.au/docs/easws/easws84.htm
in essence you want to create an ANT Taskdef
remember also to set gentypes option to true to re-gen the types

Please Post to ant users list as this group would definitely be able to help 
answer this query
M-

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


----- Original Message ----- 
From: "Anil VVNN" <vv...@yahoo.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, April 11, 2007 11:07 AM
Subject: Re: [Axis2] wsdl2java overriding my files


>
> 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,
>>>>>
>>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>>
>>>>> 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
>>>>>>
>>>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>>>
>>>>>> This should do the trick.
>>>>>>
>>>>>> /philipp
>>>>>>
>>>>>> Anil VVNN schrieb:
>>>>>>> Philipp,
>>>>>>>
>>>>>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>>>>>
>>>>>>> <element name="MessageRequest">
>>>>>>> <complexType>
>>>>>>>     <sequence>
>>>>>>>    <element name="transporter" nillable="true"
>>>>>>> type="tns:Transporter"/>
>>>>>>>    </sequence>
>>>>>>> </complexType>
>>>>>>> </element>
>>>>>>>       <complexType abstract="true" name="Transporter"/>
>>>>>>> <complexType name="ABCTransporter">
>>>>>>> <complexContent>
>>>>>>>       <extension base="tns:Transporter">
>>>>>>>           <sequence>
>>>>>>>   <element name="StartDate" nillable="true" type="xsd:string"/>
>>>>>>>                                 <element name="EndDate"
>>>>>>> nillable="true"
>>>>>>> type="xsd:string"/>
>>>>>>>                           </sequence>
>>>>>>>       </extension>
>>>>>>>                </complexContent>
>>>>>>>      </complexType>
>>>>>>>
>>>>>>> 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,
>>>>>>>>>
>>>>>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" 
>>>>>>>>> fork="true"
>>>>>>>>> classpathref="axis.classpath">
>>>>>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>>>>>         <arg line="-ss"/>
>>>>>>>>>         <arg line="-sd"/>
>>>>>>>>>         <arg line="-ssi"/>
>>>>>>>>>         <arg line="-d adb"/>
>>>>>>>>>         <arg line="-g"/>
>>>>>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>>>>>         <arg line="-S ."/>
>>>>>>>>>       </java>
>>>>>>>>>
>>>>>>>>> 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
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: [Axis2] wsdl2java overriding my files

Posted by Anil VVNN <vv...@yahoo.com>.
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,
>>>>
>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>
>>>> 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
>>>>>
>>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>>
>>>>> This should do the trick.
>>>>>
>>>>> /philipp
>>>>>
>>>>> Anil VVNN schrieb:
>>>>>> Philipp,
>>>>>>
>>>>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>>>>
>>>>>> <element name="MessageRequest">
>>>>>> 	<complexType>
>>>>>> 	    <sequence>
>>>>>>    		<element name="transporter" nillable="true"
>>>>>> type="tns:Transporter"/>
>>>>>> 	   </sequence>
>>>>>> 	</complexType>
>>>>>> </element>
>>>>>>       <complexType abstract="true" name="Transporter"/>
>>>>>> 	<complexType name="ABCTransporter">
>>>>>> 	<complexContent>
>>>>>> 	      <extension base="tns:Transporter">
>>>>>> 	          <sequence>
>>>>>>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>>>>>>                                 <element name="EndDate"
>>>>>> nillable="true"
>>>>>> type="xsd:string"/>
>>>>>>                           </sequence>
>>>>>> 	      </extension>
>>>>>>                </complexContent>
>>>>>>      </complexType>
>>>>>>
>>>>>> 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,
>>>>>>>>
>>>>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>>>>>>> classpathref="axis.classpath">
>>>>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>>>>         <arg line="-ss"/>
>>>>>>>>         <arg line="-sd"/>
>>>>>>>>         <arg line="-ssi"/>
>>>>>>>>         <arg line="-d adb"/>
>>>>>>>>         <arg line="-g"/>
>>>>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>>>>         <arg line="-S ."/>
>>>>>>>>       </java>
>>>>>>>>
>>>>>>>> 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


AW: [Axis2] wsdl2java overriding my files

Posted by Stadelmann Josef <jo...@winterthur.ch>.
No. DoAxis2 should do it like some good CORBA code generators do it! 
maybe check that with IONA

i.e. 

In the original version of the stubs or skeleton files or the metod impl file 
(at DEC time), the code generator placed special pairs of markups after each 
method header. And the programmer was then asked to place all to be preserved
code inbetween such markups.

While the new code gen runs, it has to check for the existence of the original 
version of the file (same name), find for each method a potential existing old 
one and if found, check for code inside this markups and copy the code inbetween 
from the original file to the new generating file. maybe not always perfect but
much better then nothing.

And this can apply not only to .java code files but all other kind of to be
generated files where ever such markups are placed. such way, embedded placed 
code can and shall persist accross code gens. 

We had the same, at least similar troubles with some CORBA implementations and
we got tired to see our developed code gone while we incrementally developed our
CORBA IDL file. 

Josef.Stadelmann
@winterthur.ch



-----Ursprüngliche Nachricht-----
Von: Philipp Leitner [mailto:philipp.leitner@gmx.at]
Gesendet: Mittwoch, 11. April 2007 16:19
An: axis-user@ws.apache.org
Betreff: Re: [Axis2] wsdl2java overriding my files


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,
>>>
>>> <arg line="-p com.myprj.webservice.generated"/>
>>>
>>> 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
>>>>
>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>
>>>> This should do the trick.
>>>>
>>>> /philipp
>>>>
>>>> Anil VVNN schrieb:
>>>>> Philipp,
>>>>>
>>>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>>>
>>>>> <element name="MessageRequest">
>>>>> 	<complexType>
>>>>> 	    <sequence>
>>>>>    		<element name="transporter" nillable="true"
>>>>> type="tns:Transporter"/>
>>>>> 	   </sequence>
>>>>> 	</complexType>
>>>>> </element>
>>>>>       <complexType abstract="true" name="Transporter"/>
>>>>> 	<complexType name="ABCTransporter">
>>>>> 	<complexContent>
>>>>> 	      <extension base="tns:Transporter">
>>>>> 	          <sequence>
>>>>>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>>>>>                                 <element name="EndDate" nillable="true"
>>>>> type="xsd:string"/>
>>>>>                           </sequence>
>>>>> 	      </extension>
>>>>>                </complexContent>
>>>>>      </complexType>
>>>>>
>>>>> 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,
>>>>>>>
>>>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>>>>>> classpathref="axis.classpath">
>>>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>>>         <arg line="-ss"/>
>>>>>>>         <arg line="-sd"/>
>>>>>>>         <arg line="-ssi"/>
>>>>>>>         <arg line="-d adb"/>
>>>>>>>         <arg line="-g"/>
>>>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>>>         <arg line="-S ."/>
>>>>>>>       </java>
>>>>>>>
>>>>>>> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] wsdl2java overriding my files

Posted by Philipp Leitner <ph...@gmx.at>.
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,
>>>
>>> <arg line="-p com.myprj.webservice.generated"/>
>>>
>>> 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
>>>>
>>>> <arg line="-p com.myprj.webservice.generated"/>
>>>>
>>>> This should do the trick.
>>>>
>>>> /philipp
>>>>
>>>> Anil VVNN schrieb:
>>>>> Philipp,
>>>>>
>>>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>>>
>>>>> <element name="MessageRequest">
>>>>> 	<complexType>
>>>>> 	    <sequence>
>>>>>    		<element name="transporter" nillable="true"
>>>>> type="tns:Transporter"/>
>>>>> 	   </sequence>
>>>>> 	</complexType>
>>>>> </element>
>>>>>       <complexType abstract="true" name="Transporter"/>
>>>>> 	<complexType name="ABCTransporter">
>>>>> 	<complexContent>
>>>>> 	      <extension base="tns:Transporter">
>>>>> 	          <sequence>
>>>>>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>>>>>                                 <element name="EndDate" nillable="true"
>>>>> type="xsd:string"/>
>>>>>                           </sequence>
>>>>> 	      </extension>
>>>>>                </complexContent>
>>>>>      </complexType>
>>>>>
>>>>> 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,
>>>>>>>
>>>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>>>>>> classpathref="axis.classpath">
>>>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>>>         <arg line="-ss"/>
>>>>>>>         <arg line="-sd"/>
>>>>>>>         <arg line="-ssi"/>
>>>>>>>         <arg line="-d adb"/>
>>>>>>>         <arg line="-g"/>
>>>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>>>         <arg line="-S ."/>
>>>>>>>       </java>
>>>>>>>
>>>>>>> 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


Re: [Axis2] wsdl2java overriding my files

Posted by Anil VVNN <vv...@yahoo.com>.
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,
>> 
>> <arg line="-p com.myprj.webservice.generated"/>
>> 
>> 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
>>>
>>> <arg line="-p com.myprj.webservice.generated"/>
>>>
>>> This should do the trick.
>>>
>>> /philipp
>>>
>>> Anil VVNN schrieb:
>>>> Philipp,
>>>>
>>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>>
>>>> <element name="MessageRequest">
>>>> 	<complexType>
>>>> 	    <sequence>
>>>>    		<element name="transporter" nillable="true"
>>>> type="tns:Transporter"/>
>>>> 	   </sequence>
>>>> 	</complexType>
>>>> </element>
>>>>       <complexType abstract="true" name="Transporter"/>
>>>> 	<complexType name="ABCTransporter">
>>>> 	<complexContent>
>>>> 	      <extension base="tns:Transporter">
>>>> 	          <sequence>
>>>>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>>>>                                 <element name="EndDate" nillable="true"
>>>> type="xsd:string"/>
>>>>                           </sequence>
>>>> 	      </extension>
>>>>                </complexContent>
>>>>      </complexType>
>>>>
>>>> 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,
>>>>>>
>>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>>>>> classpathref="axis.classpath">
>>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>>         <arg line="-ss"/>
>>>>>>         <arg line="-sd"/>
>>>>>>         <arg line="-ssi"/>
>>>>>>         <arg line="-d adb"/>
>>>>>>         <arg line="-g"/>
>>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>>         <arg line="-S ."/>
>>>>>>       </java>
>>>>>>
>>>>>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9936923
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


Re: [Axis2] wsdl2java overriding my files

Posted by Philipp Leitner <ph...@gmx.at>.
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,
> 
> <arg line="-p com.myprj.webservice.generated"/>
> 
> 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
>>
>> <arg line="-p com.myprj.webservice.generated"/>
>>
>> This should do the trick.
>>
>> /philipp
>>
>> Anil VVNN schrieb:
>>> Philipp,
>>>
>>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>>>
>>> <element name="MessageRequest">
>>> 	<complexType>
>>> 	    <sequence>
>>>    		<element name="transporter" nillable="true" type="tns:Transporter"/>
>>> 	   </sequence>
>>> 	</complexType>
>>> </element>
>>>       <complexType abstract="true" name="Transporter"/>
>>> 	<complexType name="ABCTransporter">
>>> 	<complexContent>
>>> 	      <extension base="tns:Transporter">
>>> 	          <sequence>
>>>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>>>                                 <element name="EndDate" nillable="true"
>>> type="xsd:string"/>
>>>                           </sequence>
>>> 	      </extension>
>>>                </complexContent>
>>>      </complexType>
>>>
>>> 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,
>>>>>
>>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>>>> classpathref="axis.classpath">
>>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>>         <arg line="-ss"/>
>>>>>         <arg line="-sd"/>
>>>>>         <arg line="-ssi"/>
>>>>>         <arg line="-d adb"/>
>>>>>         <arg line="-g"/>
>>>>>         <arg line="-p com.myprj.webservice"/>
>>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>>         <arg line="-S ."/>
>>>>>       </java>
>>>>>
>>>>> 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


Re: Can not build sample projects of Axis2

Posted by Martin Gainty <mg...@hotmail.com>.
Peter--

I think this brings up the subject of how does one iterate thru a collection of interfaces?

Being mindful that this is not a class and this is not instantiating a class which may implement one or more interface(s) but an attempt to iterate thru a collection of just plain Interfaces

take a gander at 
\samples\quickstartadb\build\service\src\samples\quickstart\service\adb\StockQuoteMessageReceiveInOnly.java
where the parameter env we are (supposedly) iterating on is SOAPEnvelope which IS an interface
How is any iteration on an (non static) interface possible???

 /**
        *  A utility method that copies the namepaces from the SOAPEnvelope
        */
        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
        java.util.Map returnMap = new java.util.HashMap();
        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
        while (namespaceIterator.hasNext()) {
        org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
        returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
        }
        return returnMap;
        }
the workaround is to pass in SOAPPart on the stack and then in the body of the code
SOAPEnvelope env = sp.getEnvelope();

Comments/Advice/Suggestions?
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  ----- Original Message ----- 
  From: Great Man 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, April 10, 2007 12:53 PM
  Subject: Can not build sample projects of Axis2


  I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

  E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
  Buildfile: build.xml

  init:
  generate.service:
  BUILD FAILED
  E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

  Total time: 1 second


  Any help would be really appreciated.

  Petr



------------------------------------------------------------------------------
  We won't tell. Get more on shows you hate to love
  (and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: Can not build sample projects of Axis2

Posted by Davanum Srinivas <da...@gmail.com>.
Which version of ant?

-- dims

On 4/10/07, Great Man <gr...@yahoo.com> wrote:
> Has not any one seen this problem ???  I freshly installed
> jdk1.5/Axis/Ant/TomCat on new machine and still seeing the same issue .
> First I thought that it was some configuration issue but more likely it is
> now looking as some bug.
>
> Please help me.
>
> Thanks,
>
> Petr.
>
>
> Great Man <gr...@yahoo.com> wrote:
>  I am trying to build Axis2 samples project (quickstartadb) and I have
> jdk1.5 in my system and I am getting following exception. Any idea why it is
> complaining ???
>
> E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
> Buildfile: build.xml
>
> init:
> generate.service:
> BUILD FAILED
> E:\axis2-1.1.1\samples\quickstartadb\build.xml:56:
> java.util.zip.ZipException: The system cannot find the file specified
>
> Total time: 1 second
>
>
> Any help would be really appreciated.
>
> Petr
>  ________________________________
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
>
>
>  ________________________________
> Looking for earth-friendly autos?
>  Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Can not build sample projects of Axis2

Posted by Great Man <gr...@yahoo.com>.
Okay I solved this issue. You can not build sample projects with ant 1.7. You have to use ant1.6.2 for that Could some one please point to docs team of Axis. to put it on web site.


Great Man <gr...@yahoo.com> wrote: Has not any one seen this problem ???  I freshly installed jdk1.5/Axis/Ant/TomCat on new machine and still seeing the same issue . First I thought that it was some configuration issue but more likely it is now looking as some bug.

Please help me.

Thanks,

Petr.

Great Man <gr...@yahoo.com> wrote: I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
Buildfile: build.xml

init:
generate.service:
BUILD FAILED
E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

Total time: 1 second


Any help would be really  appreciated.

Petr
        

---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
            

---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

       
---------------------------------
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.

Re: Can not build sample projects of Axis2

Posted by Great Man <gr...@yahoo.com>.
Has not any one seen this problem ???  I freshly installed jdk1.5/Axis/Ant/TomCat on new machine and still seeing the same issue . First I thought that it was some configuration issue but more likely it is now looking as some bug.

Please help me.

Thanks,

Petr.

Great Man <gr...@yahoo.com> wrote: I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
Buildfile: build.xml

init:
generate.service:
BUILD FAILED
E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

Total time: 1 second


Any help would be really appreciated.

Petr
        

---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

        
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

Can not build sample projects of Axis2

Posted by Great Man <gr...@yahoo.com>.
I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 in my system and I am getting following exception. Any idea why it is complaining ???

E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
Buildfile: build.xml

init:
generate.service:
BUILD FAILED
E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: java.util.zip.ZipException: The system cannot find the file specified

Total time: 1 second


Any help would be really appreciated.

Petr

       
---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: [Axis2] wsdl2java overriding my files

Posted by Anil VVNN <vv...@yahoo.com>.
Philipp,

Unfortunately, this did not work. This is what I did,

<arg line="-p com.myprj.webservice.generated"/>

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
> 
> <arg line="-p com.myprj.webservice.generated"/>
> 
> This should do the trick.
> 
> /philipp
> 
> Anil VVNN schrieb:
>> Philipp,
>> 
>> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
>> 
>> <element name="MessageRequest">
>> 	<complexType>
>> 	    <sequence>
>>    		<element name="transporter" nillable="true" type="tns:Transporter"/>
>> 	   </sequence>
>> 	</complexType>
>> </element>
>>       <complexType abstract="true" name="Transporter"/>
>> 	<complexType name="ABCTransporter">
>> 	<complexContent>
>> 	      <extension base="tns:Transporter">
>> 	          <sequence>
>>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>>                                 <element name="EndDate" nillable="true"
>> type="xsd:string"/>
>>                           </sequence>
>> 	      </extension>
>>                </complexContent>
>>      </complexType>
>> 
>> 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,
>>>>
>>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>>> classpathref="axis.classpath">
>>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>>         <arg line="-ss"/>
>>>>         <arg line="-sd"/>
>>>>         <arg line="-ssi"/>
>>>>         <arg line="-d adb"/>
>>>>         <arg line="-g"/>
>>>>         <arg line="-p com.myprj.webservice"/>
>>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>>         <arg line="-S ."/>
>>>>       </java>
>>>>
>>>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9922483
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


Re: [Axis2] wsdl2java overriding my files

Posted by Philipp Leitner <ph...@gmx.at>.
The thing is, you should let these files be generated into a /different/ 
package :-)

Try

<arg line="-p com.myprj.webservice.generated"/>

This should do the trick.

/philipp

Anil VVNN schrieb:
> Philipp,
> 
> Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,
> 
> <element name="MessageRequest">
> 	<complexType>
> 	    <sequence>
>    		<element name="transporter" nillable="true" type="tns:Transporter"/>
> 	   </sequence>
> 	</complexType>
> </element>
>       <complexType abstract="true" name="Transporter"/>
> 	<complexType name="ABCTransporter">
> 	<complexContent>
> 	      <extension base="tns:Transporter">
> 	          <sequence>
>   		<element name="StartDate" nillable="true" type="xsd:string"/>
>                                 <element name="EndDate" nillable="true"
> type="xsd:string"/>
>                           </sequence>
> 	      </extension>
>                </complexContent>
>      </complexType>
> 
> 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,
>>>
>>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>>> classpathref="axis.classpath">
>>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>>         <arg line="-ss"/>
>>>         <arg line="-sd"/>
>>>         <arg line="-ssi"/>
>>>         <arg line="-d adb"/>
>>>         <arg line="-g"/>
>>>         <arg line="-p com.myprj.webservice"/>
>>>         <arg line="-o ${basedir}/ws/src/java"/>
>>>         <arg line="-S ."/>
>>>       </java>
>>>
>>> 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


Re: [Axis2] wsdl2java overriding my files

Posted by Anil VVNN <vv...@yahoo.com>.
Philipp,

Are you referring to "<arg line="-p com.myprj.webservice"/>" 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,

<element name="MessageRequest">
	<complexType>
	    <sequence>
   		<element name="transporter" nillable="true" type="tns:Transporter"/>
	   </sequence>
	</complexType>
</element>
      <complexType abstract="true" name="Transporter"/>
	<complexType name="ABCTransporter">
	<complexContent>
	      <extension base="tns:Transporter">
	          <sequence>
  		<element name="StartDate" nillable="true" type="xsd:string"/>
                                <element name="EndDate" nillable="true"
type="xsd:string"/>
                          </sequence>
	      </extension>
               </complexContent>
     </complexType>

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,
>> 
>>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
>> classpathref="axis.classpath">
>>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>>         <arg line="-ss"/>
>>         <arg line="-sd"/>
>>         <arg line="-ssi"/>
>>         <arg line="-d adb"/>
>>         <arg line="-g"/>
>>         <arg line="-p com.myprj.webservice"/>
>>         <arg line="-o ${basedir}/ws/src/java"/>
>>         <arg line="-S ."/>
>>       </java>
>> 
>> Thanks.
> 
> ---------------------------------------------------------------------
> 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#a9921989
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


Re: [Axis2] wsdl2java overriding my files

Posted by Philipp Leitner <ph...@gmx.at>.
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,
> 
>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
> classpathref="axis.classpath">
>         <arg line="-uri ./ws/${src.xml.dir}/${wsdl.file}"/>
>         <arg line="-ss"/>
>         <arg line="-sd"/>
>         <arg line="-ssi"/>
>         <arg line="-d adb"/>
>         <arg line="-g"/>
>         <arg line="-p com.myprj.webservice"/>
>         <arg line="-o ${basedir}/ws/src/java"/>
>         <arg line="-S ."/>
>       </java>
> 
> Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org