On 4/19/07, Meghna Rao <[EMAIL PROTECTED]> wrote:
Thanks Dennis for sharing that. ADB is what I am using.
What is the version you use? if you have problems with axis2-1.1.1 please have a look at with the RC2. *Dennis Sosnoski <[EMAIL PROTECTED]>* wrote:
Hi Sathija, With this, as with most aspects of schema support, it comes down to the actual data binding framework you're using. JiBX supports polymorphism using the equivalent of schema substitution groups (where different element names are used to distinguish between the different types of derived structures). I believe XMLBeans has very good support for polymorphism using type substitution (where the element name is always the same, but the actual type is given in the instance document using an xsi:type="..." attribute of the element), though it has a more difficult time with substitution groups. I don't know what form of support ADB provides for polymorphism. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Meghna Rao wrote: > 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------------------------------ Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->
-- Amila Suriarachchi, WSO2 Inc.
