Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis and inheritance

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