Cszczotka-

http://mail-archives.apache.org/mod_mbox/velocity-user/200410.mbox/%3CPine.G
[EMAIL PROTECTED]

This example adds entries to 2 Hashmap<String,String> objects and then
add the 2 HashMap objects to a
new ArrayList<Map<String, String>>();
which you can then use in a foreach to output the map names

dziekuje!
Martin
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 27, 2007 8:13 AM
Subject: Problem with return HashMap.


Hi,
I have simple web service ( Axis2-1.3 ) which has method return
java.util.HashMap:

public class SimpleWebService {

private HashMap<String, String> _map;
public SimpleWebService() {
_map = new HashMap<String, String>();

}
public HashMap<String, String> getMap() {
_map.put("AA", "BB");
_map.put("BB", "BB");
_map.put("CC", "BB");
_map.put("DD", "BB");
_map.put("EE", "BB");
return _map;
}
}

I use RPCServiceClient. Problem occurred when I try obtain values in
HashMap.
>From client I have gotten empty hash map.
Do you have any experience with serialization HashMap or other java
collections ? Do you know where can I find any samples ?
Regards,


----------------------------------------------------------------------
Fajne i smieszne. Zobacz najlepsze filmiki!

>>> http://link.interia.pl/f1bbb


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to