Hello,

Does Axis2 support object polymorphism?

I've seen several JIRA issues that touch upon this one way or the other whether 
it is POJO approach or WSDL first approach.

I have been trying to send objects across the wire using web services and here 
is their structure.

                         Quadrilateral
                             /  \
                           /      \
                 Square         Rectangle

My service's signature looks like this:
public Quadrilateral retrieveQuadrilateral() {
      // return an instance of Square or Rectangle.
}

What I hoped to see was a properly deserialized instance of Square or Rectangle 
at the client side which is not happening.

I've inspected the SOAP response and there is no indicator in the xml for the 
deserializer to construct an object of the right instance.

Is this even supported by Axis?

Thanks,
Sathija.


       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Reply via email to