This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis and inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis and inheritance" Watch "Axis and inheritance" New topic

Axis and inheritance

Miriam van Soest

Joined: Dec 21, 2005
Posts: 4
We used Axis to automatically generate request and response types from our beans and it worked wonderfully. But now they want a little change, and I have no idea how to do that. So I hope you guys can get me going.

We had an original response message which looks like this (simplified version):

class Response {

addRecord(final Record record) {...)
Record[] getRecords() {...}

class Record {

Which works fine because Record is a bean too, and Axis can handle that. But now we got a request to do the following:

Record can be of the type:
RecordType1 (extends Record)
RecordType2 (extends Record)

So basically I will get a response where the list of records can contain several TYPE of records.

Is this possible in Axis? Can I still do it automatically, and if not, what should I do to get it going.

I hope you guys can help me

I agree. Here's the link:
subject: Axis and inheritance
It's not a secret anymore!