• Post Reply Bookmark Topic Watch Topic
  • New Topic

axis question  RSS feed

 
Rafa Barcel� Bauz�
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks.

Just a simple question:

It's possible to put a java.util.Map as a parameter in a webService invocation ??

Example:

Map params = new HashMap();
params.put("1","one");
params.put("2","two");
Integer res = (Integer) call.invoke(new Object[]{new Integer(op), params});

When i trie to do this i get this exception:
org.xml.sax.SAXException: No deserializer for {http://schemas.xmlsoap.org/soap/encoding/}string
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOAP can't handle arbitrary Java objects. An array would work (because Axis has a serializer/deserializer for that), but not a Map. Read this article for more information on the topic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!