This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis and inheritance  RSS feed

Miriam van Soest
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 {

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

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!