Tom, 

IMO, your statement is true except in the context of method overloading. 

I am trying to find a reason why someone would define types while not
referring to them.  The only one I see is for method overloading.

This being said, I don't see any harm in generating extra classes.
Certainly not when they are indirectly referenced, thus, meant to serve a
purpose.

I guess I am a good developer, I am lazy, I like code generators! 
--
Sylvain.


-----Original Message-----
From: Tom Jordahl [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 2:43 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: What should WSDL2Java generate on inheritance?



I would think that Folder should not be generated unless it is explicitly
referenced.

If you needed code for a Folder type, you could always break out the types
in to their own file and feed them in to WSDL2Java.  It would then generate
code for all the types given, given our hierarchy of reference.

--
Tom Jordahl
Macromedia


-----Original Message-----
From: Russell Butek [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 1:47 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: What should WSDL2Java generate on inheritance?


Folks in axis-dev, there's a discussion going on in axis-user about what
WSDL2Java generates.  Given:

> >   <complexType name="Object">
> >     <sequence>
> >           [...]
> >     </sequence>
> >   </complexType>
> >
> >   <complexType name="Folder">
> >     <complexContent>
> >       <extension base="types:Object">
> >         <sequence>
> >           [...]
> >         </sequence>
> >       </extension>
> >     </complexContent>
> >   </complexType>
> >
> >   <message name="addInput">
> >     <part name="input" type="types:Object"/>
> >   </message>
> >   <message name="addOutput">
> >     <part name="result" type="xsd:string"/>
> >   </message>
> >
> >   <operation name="add">
> >     <input message="cm:addInput"/>
> >     <output message="cm:addOutput"/>
> >   </operation>

There are 2 types here:  Object, and Folder (for which Object is the base).
Object is generated because it's in the addInput message which is in the
add operation.  Folder is NOT generated because it isn't referenced
anywhere.  But perhaps it SHOULD be generated because it COULD be used as
an Object?

Question:  what is the right thing to do?

Russell Butek
[EMAIL PROTECTED]

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

Reply via email to