wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis and inheritance" Watch "Axis and inheritance" New topic
Author

Axis and inheritance

Miriam van Soest
Greenhorn

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 {
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis and inheritance
 
Similar Threads
How to set the content type for a GET request from a browser
who provides functionality....
Data Object/LockManager
Synchronization of public methods in DVDDatabase
RMI, threads, locking unlocking records