As a best practice, don't return Java Collections -- convert them to arrays.
Anne
On 27 Sep 2007 14:13:35 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 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]