You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ken Tam <ke...@proteustech.com> on 2005/08/03 20:44:25 UTC

Deserialize subclasses with AXIS

I have a web service which returns an array of a base abstracted class with
the actual subclasses as the entries. I am getting an error when this web
service is invoked from an AXIS client. It doesn't seem like the
BeanDeserializer know how to deserialize a subclass and an exception is
thrown saying a subclass member is not found in the base class.

I checked the SOAP response and found the subclasses are returned correctly.
In addition, I was able to get this to work with a .NET client.

I am using the latest AXIS 1.2.1. Is there another deserializer I should use
or do I have to write my own deserializer to handle subclasses.

Thanks.



Re: Deserialize subclasses with AXIS

Posted by "Kr..............................Kr" <ba...@gmail.com>.
can you please post your wsdl file and the response soap message ..
check the axis generated stubs to see if there is axis (de)serializer
registered for the subclasses ...