• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returning an array with different classes inside

 
Peter Merker
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a method which is returning an array of type BaseClass. Inside are objects of different SubClasses. The SOAP message generated by Axis 1.3 treats the objects in the array as if they were all of type BaseClass, but I need the attributes from the SubClasses, which are really inside the array.
Is there a way to do this somehow, either with Axis 1.3, another version, or another Web Services Library?
If this is not implemented yet, is it possible to fix the Axis code? In this case, where could this be done?

Thanks in advance for your help.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are trying to push SOAP well beyond what it is designed for. You should try to come up with a way to transfer the information using standard SOAP concepts.

For example can you reduce the specialized class attributes to a Map?

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic