File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Returning HashMap from Web Service
Anjali S Sharma
Joined: Jun 29, 2005
Aug 06, 2009 01:59:27
Is it correct to say that a Java webservice cannot return a
although it can return a List. If this is true can someone please let me know the reason.
Joined: Oct 04, 2006
Aug 06, 2009 06:17:36
You can do some voodoo with JAXB, called XmlAdapters, to be able to return a map. Check this link:
I agree. Here's the link:
subject: Returning HashMap from Web Service
WA #1.....word association
retrive Vector from HashMap
switch on String
How to cast an Object to a HashMap with out getting unchecked cast warning
Can an array be used as a HashMap Key?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013