File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Returning map / list with axis ws Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Returning map / list with axis ws" Watch "Returning map / list with axis ws" New topic

Returning map / list with axis ws

jaki jane

Joined: Aug 04, 2008
Posts: 11
Hi all,

I have an axis WS client calling a remote ejb3 web service as below:

Thought it throws no error, the returned Map / List never has any contents in them. Also, if instead of setReturnClass I try to use setReturnType(org.apache.axis.Constants.XSD_ANY) it gives me the below error:

could not find deserializer for type {}any
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Have you looked at the SOAP that gets transmitted? You can use a tool like SOAPUI. In general, I would avoid using Java classes as return types that have no type mapping using XML Schema (like any kind of Map). You may have to write a custom serializer/deserializer for that.
I agree. Here's the link:
subject: Returning map / list with axis ws
jQuery in Action, 3rd edition