This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 41599
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.

Ping & DNS - my free Android networking tools app
Consider Paul's rocket mass heater.
subject: Returning map / list with axis ws