Hey Parul,
The 'No deserializer for Array' error message is somewhat misleading. What
it actually means is that no deserializer for the arrayType (e.g.,
SearchRequest, SearchView) could be found. If you provide
serializers/deserializers for the array types, AXIS will take care of
encoded/decoded the Array.
HTH,
Ian
[EMAIL PROTECTED]
ditors.com To: [EMAIL PROTECTED]
cc:
02/23/2004 08:24 Subject: Re: No serializer found for
class
PM
Please respond
to axis-user
The problem was with the Date and time, Axis was trying to use the Calendar
Serializer and de-serializer, but I think the format of the incoming data
was a bit weird hence it could not deserialize it correctly, I changed it
to be a "String" and it worked.. partially .
Now the problem that I am running into is I have to register deserializers
for the Arrays of Objects.
My respose has several things like this
<requests xsi:type="Array" arrayType="SearchRequest[1]"> and
<results xsi:type="Array" arrayType="SearchView[3]">
If I didn't register deserializers for "Array"t came back with
faultString: org.xml.sax.SAXException: No deserializer for Array
So then I did register it like this
_call.registerTypeMapping(SearchRequest[].class,new QName("Array"),
new ArraySerializerFactory(), new ArrayDeserializerFactory());
and
_call.registerTypeMapping(SearchView[].class,new QName("Array"),
new ArraySerializerFactory(), new ArrayDeserializerFactory());
But now the problem is that I have several Array, with different types of
Objects being returned. And since the QName is "Array" it's registering
only a single Deserializer for all the arrays.
How do I register individual Arrays of different objects, given my reponse
looks likt that...
Don't know if I am on a totally different track of going mad.. but any
ideas would be wonderful..
Thanks,
Parul
This transmission may contain information that is privileged, confidential and/or
exempt from disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or use of the
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED.
If you received this transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard copy format. Thank
you.