Is Quadrilateral defined as abstract class? 
If so  - I expect it will be translated into abstract type in WSDL, with 
subsequent permitting polymorphic types in method signatures.
  ----- Original Message ----- 
  From: Meghna Rao 
  To: [email protected] 
  Sent: Wednesday, April 18, 2007 3:32 PM
  Subject: Axis2 and polymorphism


  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 out new cars at Yahoo! Autos. 

Reply via email to