File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returning map / list with axis ws

 
jaki jane
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic