Axis can't just serialize an object it doesn't know (like Contact). You need to provide a serializer/deserializer - have you done that? If yes, then it would seem that it isn't registered properly. If you don't have one, look into whether you can use the built-in BeanSerializer. It can serialize objects that adhere to the Java Bean pattern.
hi thanks for the reply, but the class Contact is returning a List in this fashion
getUsers() returns a List
Is the List object not recognised by Axis?
Joined: Mar 22, 2005
The error message says that it is trying to serialize the Contact class, so you might want to check your code if you are specifying that somewhere.
Looking at the two code snippets, it seems that the server sends a list, while the client seems to expect an array, so there's a problem right there. You can consult this article on how to serialize collections (basically, since List is unknown to SOAP, as arrays).
Joined: Oct 31, 2004
I was able to solve the problem when i tried to wrap the List in to a bean and have a bean mapping in the wsdd. which goes like this...
Thanks for the article it was very useful to me.
Joined: May 21, 2009
Harathi Rao wrote:
Could you please to tell us, where did you put the snip code above exactly???