About this inheritance, is it supported by JAXB?

We use abstract types in our service, and I notice the schema isn't completely 
generated ...

My classes look like this:
Public AbstractType;
Public SubType1 extends AbstractType;
Public SubType2 extends AbstractType;

Operation looks like this:
Void doStuff (AbstractType a);

If I only define doStuff to be a wsdl operation, only AbstractType is put in 
the WSDL. When I define operation void doStuff (SubType1 s); SubType1 is added 
to the wsdl.

Is there another way to work around this?


Dylan Honorez
R & D Consultant
4C Technologies / kZen
+32 (0)485 / 69.28.12
[EMAIL PROTECTED]

-----Original Message-----
From: Johan Lindquist [mailto:[EMAIL PROTECTED] 
Sent: woensdag 28 maart 2007 16:00
To: [email protected]
Subject: Re: [xfire-user] WSDL and inheritance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again Oyvind,

Thanks - that worked fine.  Looks like the latest version also supports
the definitions defined in the services.xml document.

Cheers,

Johan

Johan Lindquist wrote:
> Hi Oyvind,
> 
> Thanks for the pointer - I missed the part about POJO inheritance before.
> 
> Will give it a go.
> 
> Johan
> 
> Øyvind Matheson Wergeland wrote:
>> Hi Johan,
> 
>> XFire does support inheritance with some limitations. Your case should be 
>> covered though. How to do it depends on which binding mechanism you use. If 
>> you haven't set a binding, your using Aegis, so I suggest you start reading 
>> here: http://xfire.codehaus.org/Aegis+Inheritance
> 
>>  -Øyvind
> 
>> -----Opprinnelig melding-----
>> Fra: Johan Lindquist [mailto:[EMAIL PROTECTED]
>> Sendt: on 28.03.2007 13:44
>> Til: [email protected]
>> Emne: [xfire-user] WSDL and inheritance
> 
>> Hi all,
> 
>> I have a simple webservice which (to use the examples from XFire) looks
>> like this:
> 
>>   public String createBook(Book book);
> 
>> Now, Book is a base-class and I have specialized types (Comic, Language
>> , etc) which are sub-classes of it [Book].
> 
>> When I deploy the service and look at the WSDL, only Book is defined and
>> the rest omitted.
> 
>> However, if I change the API to:
> 
>>   public String createBook(ComicBook book);
> 
>> the Comic book is defined as expected.  The resulting API does however
>> not accomodate new books very easily as a new method would have to be
>> added for each.  Can you force XFire to define the types within the WSDL
>> without having them defined on the API?  Or am I missing something
>> fundamental here?
> 
>> Thanks,
> 
>> Johan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 

- ---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCnTy1Tv8wj7aQ34RAhatAJ9qtptvz4064OUH4/aMIwicmFilOQCfVQZd
BLximsWNcxGVgVyYbAG9IxU=
=0np/
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to