Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Returning map / list with axis ws" Watch "Returning map / list with axis ws" New topic
Author

Returning map / list with axis ws

jaki jane
Greenhorn

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 {http://www.w3.org/2001/XMLSchema}any
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
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
 
 
subject: Returning map / list with axis ws
 
Similar Threads
Would a HashSet be a way to solve this problem?
How to call StoredProcedure with mixed input data types?
non-static reference in singleton
storing hashmap in context
Exception in parsing returning data