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 Simon Steinacker <si...@student.uibk.ac.at> on 2007/11/22 11:01:10 UTC
Strange generated java class names
Hello,
I have a wsdl and generate java classes out of it using the wsdl2java
ant task. For example I have defined a response message named
'FindDocumentsResponse'. Axis2 generates the java class for that, but
performs a renaming into something like 'FindDocumentsResponse11'. So it
seems that it somehow appends a random number to the generated response.
This only seems to be the case with service responses, since parameters
are not affected by that phenomenon.
Is there a way to circumnavigate this issue? Because it is rather
inconvenient to use?
Thanks for your help!
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: Strange generated java class names
Posted by si...@bt.com.
No, only a E character is appended. But this is still not the way to go
for me. The differences between Axis and Axis2 probably are very big in
terms of their approach. It is not about the namespaces, but about too
many classes which are simply wrappers (but -uw or -u won't help).
Sietse
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: 05 December 2007 05:13
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
On Dec 3, 2007 8:16 PM, <si...@bt.com> wrote:
Hi Amila,
I used a last weeks nightly build. I tried it again with the one
from 3
dec and indeed, a E suffix is appended to the classname. The
generated
code is for Simon's wsdl.
you mean still Axis2 appends the number prefixes to the end. can't you
get the same file
names as I have send to you?
And also if you want to change the package names you can use the
ns2p option.
Amila.
Can you (or someone else) explain me the differences between the
Axis
and Axis2 approach in this? Because Axis seems to generate code
which
makes more sense than Axis2.
Therefore I am using Axis now, while I would prefer to use
Axis2. Maybe
I should skip code generation and provide the classes myself,
although
this will be time-consuming.
Thanks,
Sietse
________________________________
From: Amila Suriarachchi [mailto: amilasuriarachchi@gmail.com]
Sent: 03 December 2007 13:27
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Are you sure you use the nighly build? check you Axis2 home here
is the code I generated with the axis2 trunk.
thanks,
Amila.
On Dec 3, 2007 4:49 PM, < sietsenicolaas.tenhoeve@bt.com
<mailto:sietsenicolaas.tenhoeve@bt.com > > wrote:
Hi Amila,
As I said, I have the same issue (also tried it with the
nightly
build).
You are right that the type and element name are the
same.
The problem is that I can't change the wsdl file. I just
need to
deal
with this version. Strange in my opinion is that Axis 1.4
seems
to
generate more suitable code. Is there are different
approach
taken (from
perspective of the complexType / element name issue)?
Some clarification would be appreciated.
Regards,
Sietse
________________________________
From: Amila Suriarachchi [mailto:
amilasuriarachchi@gmail.com
<ma...@gmail.com> ]
Sent: 03 December 2007 09:36
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
On Nov 23, 2007 11:41 AM, Simon Steinacker
< simon.steinacker@student.uibk.ac.at
<ma...@student.uibk.ac.at> > wrote:
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
<http://pastebin.com/m1c167821>
Please have a look at with a SNAPSHOT. here the problem
is you
have an
element called
findDocumentsResponse and a complexType called
findDocumentsResponse so
we have to rename one.
But I changed this in trunk like this. if both element
and
complex type
in same package the element name would have an suffix E.
and if
they
are in different packages then have the original name.
thanks,
Amila.
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> < simon.steinacker@student.uibk.ac.at
<ma...@student.uibk.ac.at>
<ma...@student.uibk.ac.at> > wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of
it
using the
wsdl2java
>> ant task. For example I have defined a response
message named
>> 'FindDocumentsResponse'. Axis2 generates the
java
class for
that, but
>> performs a renaming into something like
'FindDocumentsResponse11'. So it
>> seems that it somehow appends a random number
to the
generated response.
>> This only seems to be the case with service
responses,
since
parameters
>> are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue?
Because
it is
rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>>
---------------------------------------------------------------------
>> 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
<ma...@ws.apache.org>
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail:
axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail:
axis-user-help@ws.apache.org
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
<ma...@ws.apache.org>
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Strange generated java class names
Posted by Amila Suriarachchi <am...@gmail.com>.
On Dec 3, 2007 8:16 PM, <si...@bt.com> wrote:
> Hi Amila,
>
> I used a last weeks nightly build. I tried it again with the one from 3
> dec and indeed, a E suffix is appended to the classname. The generated
> code is for Simon's wsdl.
you mean still Axis2 appends the number prefixes to the end. can't you get
the same file
names as I have send to you?
And also if you want to change the package names you can use the
ns2p option.
Amila.
>
>
> Can you (or someone else) explain me the differences between the Axis
> and Axis2 approach in this? Because Axis seems to generate code which
> makes more sense than Axis2.
>
> Therefore I am using Axis now, while I would prefer to use Axis2. Maybe
> I should skip code generation and provide the classes myself, although
> this will be time-consuming.
>
> Thanks,
> Sietse
>
> ________________________________
>
> From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
> Sent: 03 December 2007 13:27
> To: axis-user@ws.apache.org
> Subject: Re: Strange generated java class names
>
>
> Are you sure you use the nighly build? check you Axis2 home here
> is the code I generated with the axis2 trunk.
>
> thanks,
> Amila.
>
>
>
> On Dec 3, 2007 4:49 PM, < sietsenicolaas.tenhoeve@bt.com
> <ma...@bt.com> > wrote:
>
>
> Hi Amila,
>
> As I said, I have the same issue (also tried it with the nightly
> build).
> You are right that the type and element name are the same.
>
> The problem is that I can't change the wsdl file. I just need to
> deal
> with this version. Strange in my opinion is that Axis 1.4 seems
> to
> generate more suitable code. Is there are different approach
> taken (from
> perspective of the complexType / element name issue)?
>
> Some clarification would be appreciated.
>
> Regards,
> Sietse
>
> ________________________________
>
> From: Amila Suriarachchi [mailto: amilasuriarachchi@gmail.com
> <ma...@gmail.com> ]
> Sent: 03 December 2007 09:36
>
> To: axis-user@ws.apache.org
> Subject: Re: Strange generated java class names
>
>
>
>
>
> On Nov 23, 2007 11:41 AM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>
> Yes, I am using Axis2.
> This is the WSDL: http://pastebin.com/m1c167821
>
>
>
> Please have a look at with a SNAPSHOT. here the problem is you
> have an
> element called
> findDocumentsResponse and a complexType called
> findDocumentsResponse so
> we have to rename one.
>
> But I changed this in trunk like this. if both element and
> complex type
> in same package the element name would have an suffix E. and if
> they
> are in different packages then have the original name.
> thanks,
> Amila.
>
>
>
> Thanks,
> Simon
>
>
>
> Amila Suriarachchi wrote:
> > Are you using Axis2?
> > Can you send your wsdl?
> >
> > thanks,
> > amila.
> >
> > On Nov 22, 2007 3:31 PM, Simon Steinacker
> > <simon.steinacker@student.uibk.ac.at
> <ma...@student.uibk.ac.at> > wrote:
> >
> >> Hello,
> >>
> >> I have a wsdl and generate java classes out of it
> using the
> wsdl2java
> >> ant task. For example I have defined a response
> message named
> >> 'FindDocumentsResponse'. Axis2 generates the java
> class for
> that, but
> >> performs a renaming into something like
> 'FindDocumentsResponse11'. So it
> >> seems that it somehow appends a random number to the
> generated response.
> >> This only seems to be the case with service responses,
> since
> parameters
> >> are not affected by that phenomenon.
> >> Is there a way to circumnavigate this issue? Because
> it is
> rather
> >> inconvenient to use?
> >>
> >> Thanks for your help!
> >> Simon
> >>
> >>
>
> ---------------------------------------------------------------------
> >> 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 <ma...@ws.apache.org>
>
>
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
Re: Strange generated java class names
Posted by Amila Suriarachchi <am...@gmail.com>.
On Dec 3, 2007 8:16 PM, <si...@bt.com> wrote:
> Hi Amila,
>
> I used a last weeks nightly build. I tried it again with the one from 3
> dec and indeed, a E suffix is appended to the classname. The generated
> code is for Simon's wsdl.
>
> Can you (or someone else) explain me the differences between the Axis
> and Axis2 approach in this? Because Axis seems to generate code which
> makes more sense than Axis2.
>
> Therefore I am using Axis now, while I would prefer to use Axis2. Maybe
> I should skip code generation and provide the classes myself, although
> this will be time-consuming.
>
> Thanks,
> Sietse
>
> ________________________________
>
> From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
> Sent: 03 December 2007 13:27
> To: axis-user@ws.apache.org
> Subject: Re: Strange generated java class names
>
>
> Are you sure you use the nighly build? check you Axis2 home here
> is the code I generated with the axis2 trunk.
>
> thanks,
> Amila.
>
>
>
> On Dec 3, 2007 4:49 PM, < sietsenicolaas.tenhoeve@bt.com
> <ma...@bt.com> > wrote:
>
>
> Hi Amila,
>
> As I said, I have the same issue (also tried it with the nightly
> build).
> You are right that the type and element name are the same.
>
> The problem is that I can't change the wsdl file. I just need to
> deal
> with this version. Strange in my opinion is that Axis 1.4 seems
> to
> generate more suitable code. Is there are different approach
> taken (from
> perspective of the complexType / element name issue)?
>
> Some clarification would be appreciated.
>
> Regards,
> Sietse
>
> ________________________________
>
> From: Amila Suriarachchi [mailto: amilasuriarachchi@gmail.com
> <ma...@gmail.com> ]
> Sent: 03 December 2007 09:36
>
> To: axis-user@ws.apache.org
> Subject: Re: Strange generated java class names
>
>
>
>
>
> On Nov 23, 2007 11:41 AM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>
> Yes, I am using Axis2.
> This is the WSDL: http://pastebin.com/m1c167821
>
>
>
> Please have a look at with a SNAPSHOT. here the problem is you
> have an
> element called
> findDocumentsResponse and a complexType called
> findDocumentsResponse so
> we have to rename one.
>
> But I changed this in trunk like this. if both element and
> complex type
> in same package the element name would have an suffix E. and if
> they
> are in different packages then have the original name.
> thanks,
> Amila.
>
>
>
> Thanks,
> Simon
>
>
>
> Amila Suriarachchi wrote:
> > Are you using Axis2?
> > Can you send your wsdl?
> >
> > thanks,
> > amila.
> >
> > On Nov 22, 2007 3:31 PM, Simon Steinacker
> > <simon.steinacker@student.uibk.ac.at
> <ma...@student.uibk.ac.at> > wrote:
> >
> >> Hello,
> >>
> >> I have a wsdl and generate java classes out of it
> using the
> wsdl2java
> >> ant task. For example I have defined a response
> message named
> >> 'FindDocumentsResponse'. Axis2 generates the java
> class for
> that, but
> >> performs a renaming into something like
> 'FindDocumentsResponse11'. So it
> >> seems that it somehow appends a random number to the
> generated response.
> >> This only seems to be the case with service responses,
> since
> parameters
> >> are not affected by that phenomenon.
> >> Is there a way to circumnavigate this issue? Because
> it is
> rather
> >> inconvenient to use?
> >>
> >> Thanks for your help!
> >> Simon
> >>
> >>
>
> ---------------------------------------------------------------------
> >> 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 <ma...@ws.apache.org>
>
>
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
RE: Strange generated java class names
Posted by si...@bt.com.
Hi Amila,
I used a last weeks nightly build. I tried it again with the one from 3
dec and indeed, a E suffix is appended to the classname. The generated
code is for Simon's wsdl.
Can you (or someone else) explain me the differences between the Axis
and Axis2 approach in this? Because Axis seems to generate code which
makes more sense than Axis2.
Therefore I am using Axis now, while I would prefer to use Axis2. Maybe
I should skip code generation and provide the classes myself, although
this will be time-consuming.
Thanks,
Sietse
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: 03 December 2007 13:27
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Are you sure you use the nighly build? check you Axis2 home here
is the code I generated with the axis2 trunk.
thanks,
Amila.
On Dec 3, 2007 4:49 PM, < sietsenicolaas.tenhoeve@bt.com
<ma...@bt.com> > wrote:
Hi Amila,
As I said, I have the same issue (also tried it with the nightly
build).
You are right that the type and element name are the same.
The problem is that I can't change the wsdl file. I just need to
deal
with this version. Strange in my opinion is that Axis 1.4 seems
to
generate more suitable code. Is there are different approach
taken (from
perspective of the complexType / element name issue)?
Some clarification would be appreciated.
Regards,
Sietse
________________________________
From: Amila Suriarachchi [mailto: amilasuriarachchi@gmail.com
<ma...@gmail.com> ]
Sent: 03 December 2007 09:36
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
On Nov 23, 2007 11:41 AM, Simon Steinacker
<si...@student.uibk.ac.at> wrote:
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Please have a look at with a SNAPSHOT. here the problem is you
have an
element called
findDocumentsResponse and a complexType called
findDocumentsResponse so
we have to rename one.
But I changed this in trunk like this. if both element and
complex type
in same package the element name would have an suffix E. and if
they
are in different packages then have the original name.
thanks,
Amila.
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <simon.steinacker@student.uibk.ac.at
<ma...@student.uibk.ac.at> > wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it
using the
wsdl2java
>> ant task. For example I have defined a response
message named
>> 'FindDocumentsResponse'. Axis2 generates the java
class for
that, but
>> performs a renaming into something like
'FindDocumentsResponse11'. So it
>> seems that it somehow appends a random number to the
generated response.
>> This only seems to be the case with service responses,
since
parameters
>> are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because
it is
rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>>
---------------------------------------------------------------------
>> 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 <ma...@ws.apache.org>
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Strange generated java class names
Posted by Amila Suriarachchi <am...@gmail.com>.
Are you sure you use the nighly build? check you Axis2 home here
is the code I generated with the axis2 trunk.
thanks,
Amila.
On Dec 3, 2007 4:49 PM, <si...@bt.com> wrote:
> Hi Amila,
>
> As I said, I have the same issue (also tried it with the nightly build).
> You are right that the type and element name are the same.
>
> The problem is that I can't change the wsdl file. I just need to deal
> with this version. Strange in my opinion is that Axis 1.4 seems to
> generate more suitable code. Is there are different approach taken (from
> perspective of the complexType / element name issue)?
>
> Some clarification would be appreciated.
>
> Regards,
> Sietse
>
> ________________________________
>
> From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
> Sent: 03 December 2007 09:36
> To: axis-user@ws.apache.org
> Subject: Re: Strange generated java class names
>
>
>
>
> On Nov 23, 2007 11:41 AM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>
> Yes, I am using Axis2.
> This is the WSDL: http://pastebin.com/m1c167821
>
>
>
> Please have a look at with a SNAPSHOT. here the problem is you have an
> element called
> findDocumentsResponse and a complexType called findDocumentsResponse so
> we have to rename one.
>
> But I changed this in trunk like this. if both element and complex type
> in same package the element name would have an suffix E. and if they
> are in different packages then have the original name.
> thanks,
> Amila.
>
>
>
> Thanks,
> Simon
>
>
>
> Amila Suriarachchi wrote:
> > Are you using Axis2?
> > Can you send your wsdl?
> >
> > thanks,
> > amila.
> >
> > On Nov 22, 2007 3:31 PM, Simon Steinacker
> > <si...@student.uibk.ac.at> wrote:
> >
> >> Hello,
> >>
> >> I have a wsdl and generate java classes out of it using the
> wsdl2java
> >> ant task. For example I have defined a response message named
> >> 'FindDocumentsResponse'. Axis2 generates the java class for
> that, but
> >> performs a renaming into something like
> 'FindDocumentsResponse11'. So it
> >> seems that it somehow appends a random number to the
> generated response.
> >> This only seems to be the case with service responses, since
> parameters
> >> are not affected by that phenomenon.
> >> Is there a way to circumnavigate this issue? Because it is
> rather
> >> inconvenient to use?
> >>
> >> Thanks for your help!
> >> Simon
> >>
> >>
> ---------------------------------------------------------------------
> >> 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
>
>
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
RE: Strange generated java class names
Posted by si...@bt.com.
Hi Amila,
As I said, I have the same issue (also tried it with the nightly build).
You are right that the type and element name are the same.
The problem is that I can't change the wsdl file. I just need to deal
with this version. Strange in my opinion is that Axis 1.4 seems to
generate more suitable code. Is there are different approach taken (from
perspective of the complexType / element name issue)?
Some clarification would be appreciated.
Regards,
Sietse
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: 03 December 2007 09:36
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
On Nov 23, 2007 11:41 AM, Simon Steinacker
<si...@student.uibk.ac.at> wrote:
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Please have a look at with a SNAPSHOT. here the problem is you have an
element called
findDocumentsResponse and a complexType called findDocumentsResponse so
we have to rename one.
But I changed this in trunk like this. if both element and complex type
in same package the element name would have an suffix E. and if they
are in different packages then have the original name.
thanks,
Amila.
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it using the
wsdl2java
>> ant task. For example I have defined a response message named
>> 'FindDocumentsResponse'. Axis2 generates the java class for
that, but
>> performs a renaming into something like
'FindDocumentsResponse11'. So it
>> seems that it somehow appends a random number to the
generated response.
>> This only seems to be the case with service responses, since
parameters
>> are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because it is
rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>>
---------------------------------------------------------------------
>> 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
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Strange generated java class names
Posted by Amila Suriarachchi <am...@gmail.com>.
On Nov 23, 2007 11:41 AM, Simon Steinacker <
simon.steinacker@student.uibk.ac.at> wrote:
> Yes, I am using Axis2.
> This is the WSDL: http://pastebin.com/m1c167821
>
Please have a look at with a SNAPSHOT. here the problem is you have an
element called
findDocumentsResponse and a complexType called findDocumentsResponse so we
have to rename one.
But I changed this in trunk like this. if both element and complex type in
same package the element name would have an suffix E. and if they are in
different packages then have the original name.
thanks,
Amila.
>
> Thanks,
> Simon
>
>
> Amila Suriarachchi wrote:
> > Are you using Axis2?
> > Can you send your wsdl?
> >
> > thanks,
> > amila.
> >
> > On Nov 22, 2007 3:31 PM, Simon Steinacker
> > <si...@student.uibk.ac.at> wrote:
> >
> >> Hello,
> >>
> >> I have a wsdl and generate java classes out of it using the wsdl2java
> >> ant task. For example I have defined a response message named
> >> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
> >> performs a renaming into something like 'FindDocumentsResponse11'. So
> it
> >> seems that it somehow appends a random number to the generated
> response.
> >> This only seems to be the case with service responses, since parameters
> >> are not affected by that phenomenon.
> >> Is there a way to circumnavigate this issue? Because it is rather
> >> inconvenient to use?
> >>
> >> Thanks for your help!
> >> Simon
> >>
> >> ---------------------------------------------------------------------
> >> 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
>
>
--
Amila Suriarachchi,
WSO2 Inc.
RE: Strange generated java class names
Posted by "Pantvaidya, Vishwajit" <vp...@selectica.com>.
Sietse,
I had noticed the same happening for my skeleton class method parameters generated by Axis2. But that is not a problem for me since I anyway do not use the axis2 generated skeleton - I just use my own impl class and change the generated services.xml to refer to that.
Even if you use the axis2 skeleton, I would think that after you add the impl code in it, you would not let that be overwritten by an auto generated skeleton (except when you change webservice methods/signature, when you would need to add the changed methods into your impl class). So is this an issue?
There is also a somewhat connected issue about translation of operation names to method names that I have reported. See http://www.mail-archive.com/axis-user@ws.apache.org/msg35508.html.
- Vish.
>-----Original Message-----
>From: sietsenicolaas.tenhoeve@bt.com
>[mailto:sietsenicolaas.tenhoeve@bt.com]
>Sent: Thursday, November 29, 2007 7:21 AM
>To: axis-user@ws.apache.org
>Subject: RE: Strange generated java class names
>
>Hi Martin,
>
>The WSDL (including xsd's) can be found at:
>http://www.epcglobalinc.org/standards/epcis/epcis_1_0-schema-20070412.zi
>p
>
>I tried with the nightly build and also with axis2-1.3.
>
>Thanks in advance,
>Sietse
>
>-----Original Message-----
>From: Martin Gainty [mailto:mgainty@hotmail.com]
>Sent: 29 November 2007 14:38
>To: axis-user@ws.apache.org
>Subject: Re: Strange generated java class names
>
>Please post WSDL
>
>M-
>----- Original Message -----
>From: <si...@bt.com>
>To: <ax...@ws.apache.org>
>Sent: Thursday, November 29, 2007 8:07 AM
>Subject: RE: Strange generated java class names
>
>
>Hello everyone,
>
>I still didn't found a solution for this.
>
>Is there any update from Simon or Amila (or someone else) on this?
>
>Regards,
>Sietse
>
>-----Original Message-----
>From: sietsenicolaas.tenhoeve@bt.com
>[mailto:sietsenicolaas.tenhoeve@bt.com]
>Sent: 23 November 2007 11:38
>To: axis-user@ws.apache.org
>Subject: RE: Strange generated java class names
>
>Hi all,
>
>I have the same issue. It's kind of strange because, in my case, it is
>just a wrapper to the good class (i.e. HelloWorldRequest15 has only one
>field which is HelloWorldRequest). I tried to get rid of it using the
>-uw option but it doesn't help.
>
>The numbers are indeed random, every time I generate the sources I have
>other numbers. This pretty much ruins the automated build. Is there a
>workaround for this?
>
>Cheers,
>Sietse
>
>-----Original Message-----
>From: Simon Steinacker [mailto:simon.steinacker@student.uibk.ac.at]
>Sent: 23 November 2007 06:11
>To: axis-user@ws.apache.org
>Subject: Re: Strange generated java class names
>
>Yes, I am using Axis2.
>This is the WSDL: http://pastebin.com/m1c167821
>
>Thanks,
>Simon
>
>
>Amila Suriarachchi wrote:
>> Are you using Axis2?
>> Can you send your wsdl?
>>
>> thanks,
>> amila.
>>
>> On Nov 22, 2007 3:31 PM, Simon Steinacker
>> <si...@student.uibk.ac.at> wrote:
>>
>>> Hello,
>>>
>>> I have a wsdl and generate java classes out of it using the wsdl2java
>
>>> ant task. For example I have defined a response message named
>>> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
>
>>> performs a renaming into something like 'FindDocumentsResponse11'. So
>
>>> it seems that it somehow appends a random number to the generated
>response.
>>> This only seems to be the case with service responses, since
>>> parameters are not affected by that phenomenon.
>>> Is there a way to circumnavigate this issue? Because it is rather
>>> inconvenient to use?
>>>
>>> Thanks for your help!
>>> Simon
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>
>---------------------------------------------------------------------
>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: Strange generated java class names
Posted by si...@bt.com.
Hi Martin,
The WSDL (including xsd's) can be found at:
http://www.epcglobalinc.org/standards/epcis/epcis_1_0-schema-20070412.zi
p
I tried with the nightly build and also with axis2-1.3.
Thanks in advance,
Sietse
-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: 29 November 2007 14:38
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Please post WSDL
M-
----- Original Message -----
From: <si...@bt.com>
To: <ax...@ws.apache.org>
Sent: Thursday, November 29, 2007 8:07 AM
Subject: RE: Strange generated java class names
Hello everyone,
I still didn't found a solution for this.
Is there any update from Simon or Amila (or someone else) on this?
Regards,
Sietse
-----Original Message-----
From: sietsenicolaas.tenhoeve@bt.com
[mailto:sietsenicolaas.tenhoeve@bt.com]
Sent: 23 November 2007 11:38
To: axis-user@ws.apache.org
Subject: RE: Strange generated java class names
Hi all,
I have the same issue. It's kind of strange because, in my case, it is
just a wrapper to the good class (i.e. HelloWorldRequest15 has only one
field which is HelloWorldRequest). I tried to get rid of it using the
-uw option but it doesn't help.
The numbers are indeed random, every time I generate the sources I have
other numbers. This pretty much ruins the automated build. Is there a
workaround for this?
Cheers,
Sietse
-----Original Message-----
From: Simon Steinacker [mailto:simon.steinacker@student.uibk.ac.at]
Sent: 23 November 2007 06:11
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it using the wsdl2java
>> ant task. For example I have defined a response message named
>> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
>> performs a renaming into something like 'FindDocumentsResponse11'. So
>> it seems that it somehow appends a random number to the generated
response.
>> This only seems to be the case with service responses, since
>> parameters are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because it is rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>> ---------------------------------------------------------------------
>> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Strange generated java class names
Posted by Martin Gainty <mg...@hotmail.com>.
Please post WSDL
M-
----- Original Message -----
From: <si...@bt.com>
To: <ax...@ws.apache.org>
Sent: Thursday, November 29, 2007 8:07 AM
Subject: RE: Strange generated java class names
Hello everyone,
I still didn't found a solution for this.
Is there any update from Simon or Amila (or someone else) on this?
Regards,
Sietse
-----Original Message-----
From: sietsenicolaas.tenhoeve@bt.com
[mailto:sietsenicolaas.tenhoeve@bt.com]
Sent: 23 November 2007 11:38
To: axis-user@ws.apache.org
Subject: RE: Strange generated java class names
Hi all,
I have the same issue. It's kind of strange because, in my case, it is
just a wrapper to the good class (i.e. HelloWorldRequest15 has only one
field which is HelloWorldRequest). I tried to get rid of it using the
-uw option but it doesn't help.
The numbers are indeed random, every time I generate the sources I have
other numbers. This pretty much ruins the automated build. Is there a
workaround for this?
Cheers,
Sietse
-----Original Message-----
From: Simon Steinacker [mailto:simon.steinacker@student.uibk.ac.at]
Sent: 23 November 2007 06:11
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it using the wsdl2java
>> ant task. For example I have defined a response message named
>> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
>> performs a renaming into something like 'FindDocumentsResponse11'. So
>> it seems that it somehow appends a random number to the generated
response.
>> This only seems to be the case with service responses, since
>> parameters are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because it is rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>> ---------------------------------------------------------------------
>> 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: Strange generated java class names
Posted by si...@bt.com.
Hello everyone,
I still didn't found a solution for this.
Is there any update from Simon or Amila (or someone else) on this?
Regards,
Sietse
-----Original Message-----
From: sietsenicolaas.tenhoeve@bt.com
[mailto:sietsenicolaas.tenhoeve@bt.com]
Sent: 23 November 2007 11:38
To: axis-user@ws.apache.org
Subject: RE: Strange generated java class names
Hi all,
I have the same issue. It's kind of strange because, in my case, it is
just a wrapper to the good class (i.e. HelloWorldRequest15 has only one
field which is HelloWorldRequest). I tried to get rid of it using the
-uw option but it doesn't help.
The numbers are indeed random, every time I generate the sources I have
other numbers. This pretty much ruins the automated build. Is there a
workaround for this?
Cheers,
Sietse
-----Original Message-----
From: Simon Steinacker [mailto:simon.steinacker@student.uibk.ac.at]
Sent: 23 November 2007 06:11
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it using the wsdl2java
>> ant task. For example I have defined a response message named
>> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
>> performs a renaming into something like 'FindDocumentsResponse11'. So
>> it seems that it somehow appends a random number to the generated
response.
>> This only seems to be the case with service responses, since
>> parameters are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because it is rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>> ---------------------------------------------------------------------
>> 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: Strange generated java class names
Posted by si...@bt.com.
Hi all,
I have the same issue. It's kind of strange because, in my case, it is
just a wrapper to the good class (i.e. HelloWorldRequest15 has only one
field which is HelloWorldRequest). I tried to get rid of it using the
-uw option but it doesn't help.
The numbers are indeed random, every time I generate the sources I have
other numbers. This pretty much ruins the automated build. Is there a
workaround for this?
Cheers,
Sietse
-----Original Message-----
From: Simon Steinacker [mailto:simon.steinacker@student.uibk.ac.at]
Sent: 23 November 2007 06:11
To: axis-user@ws.apache.org
Subject: Re: Strange generated java class names
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it using the wsdl2java
>> ant task. For example I have defined a response message named
>> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
>> performs a renaming into something like 'FindDocumentsResponse11'. So
>> it seems that it somehow appends a random number to the generated
response.
>> This only seems to be the case with service responses, since
>> parameters are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because it is rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>> ---------------------------------------------------------------------
>> 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: Strange generated java class names
Posted by Simon Steinacker <si...@student.uibk.ac.at>.
Yes, I am using Axis2.
This is the WSDL: http://pastebin.com/m1c167821
Thanks,
Simon
Amila Suriarachchi wrote:
> Are you using Axis2?
> Can you send your wsdl?
>
> thanks,
> amila.
>
> On Nov 22, 2007 3:31 PM, Simon Steinacker
> <si...@student.uibk.ac.at> wrote:
>
>> Hello,
>>
>> I have a wsdl and generate java classes out of it using the wsdl2java
>> ant task. For example I have defined a response message named
>> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
>> performs a renaming into something like 'FindDocumentsResponse11'. So it
>> seems that it somehow appends a random number to the generated response.
>> This only seems to be the case with service responses, since parameters
>> are not affected by that phenomenon.
>> Is there a way to circumnavigate this issue? Because it is rather
>> inconvenient to use?
>>
>> Thanks for your help!
>> Simon
>>
>> ---------------------------------------------------------------------
>> 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: Strange generated java class names
Posted by Amila Suriarachchi <am...@gmail.com>.
Are you using Axis2?
Can you send your wsdl?
thanks,
amila.
On Nov 22, 2007 3:31 PM, Simon Steinacker
<si...@student.uibk.ac.at> wrote:
> Hello,
>
> I have a wsdl and generate java classes out of it using the wsdl2java
> ant task. For example I have defined a response message named
> 'FindDocumentsResponse'. Axis2 generates the java class for that, but
> performs a renaming into something like 'FindDocumentsResponse11'. So it
> seems that it somehow appends a random number to the generated response.
> This only seems to be the case with service responses, since parameters
> are not affected by that phenomenon.
> Is there a way to circumnavigate this issue? Because it is rather
> inconvenient to use?
>
> Thanks for your help!
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org