To explain my problem I have written a small sample application, having
only four classes: an abstract Address class with to subclasses
DanishAddress and UnitedStatesAddress. The last class is a separate
Envelope class containing to private members both of type Address: sender
and receiver.

A method is then published, using a WSDD declaring beanMappings for all
four classes:

public int addAddress(Address address) { return 42; }

This works out quite well in the generated WSDL, having Address declared
as an abstract type, along with both DanishAddress and UnitedStatesAddess
as extentions to Address.

Now, if I instead of the addAddress method publish an addEnvelope method,
as show below, only the Envelope and the abstract class Address is in the
WSDL - without the two subclasses.:

public int addEnvelope(Envelope envelope) { return 42; }

Without the type definitions of DanishAddress and UnitedStatesAddress
there is no proper definition i the WSDL of what an Address might be. It
seems that the subclasses are missing only when the superclass is part of
another class....

So my question is:

Did I miss something in the documentation, is this simply not possible, is
it just not implemented yet or is it a bug? Any help, comments, references
to documentation or other postings are appreciated.

Thanks for your time!

Regards,

Tim Hallwyl

Reply via email to