-
1. Re: Using (Hash)Map in wrapper class
jaap.taal Apr 28, 2007 8:23 PM (in response to jaap.taal)I've found a related jax-ws topic:
http://forums.java.net/jive/message.jspa?messageID=185244
Putting the Hashmap inside a wrapper does work:@WebService() @SOAPBinding(style = SOAPBinding.Style.RPC) public class EchoMapSSTest { public static class MapWrapper { public Map<String, String> map; } @WebMethod public MapWrapper echoMapSS(MapWrapper myMap) { return myMap; } }
-
2. Re: Using (Hash)Map in wrapper class
raags Mar 31, 2008 10:23 PM (in response to jaap.taal)Is this a known JAX-WS issue? I'm not able to find any bug tracked against it.. Can you help me here?
-
3. Re: Using (Hash)Map in wrapper class
jttjunk Mar 31, 2008 10:36 PM (in response to jaap.taal)I guess the map isn't really suited to send over a webservice. It was a while ago I was doing this, I'm not sure whether it worked at all.
I ended up with this as SOAPBinding:
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
Hope it helps!
Good luck -
4. Re: Using (Hash)Map in wrapper class
asouza_2000 Apr 15, 2008 7:21 PM (in response to jaap.taal)It still doesn't work for me... even using a wrapper class.
Any other idea ?
I'm using JAX-WS 2.0.1
Tks. -
5. Re: Using (Hash)Map in wrapper class
jttjunk Apr 15, 2008 7:49 PM (in response to jaap.taal)Currently I'm not using Java let alone JBoss. I'm afraid I can't help you. Good luck!