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:[EMAIL PROTECTED] Sent: 03 December 2007 09:36 To: [email protected] Subject: Re: Strange generated java class names On Nov 23, 2007 11:41 AM, Simon Steinacker <[EMAIL PROTECTED]> 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 > <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
