• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis and inheritance

 
Miriam van Soest
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 {
getStatus(){..}
setStatus(){..}

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

class Record {
getField1()(...)
setField1(){...}
}

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)
etc...

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

Miriam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic