Return Complex Types.

2010-04-26 Thread David J.
How do I access an Array that is returned in a HashMap? The server returns a HashMap with the following values {responseCode=OK,people=[Array of People]} I cast the response to a HashMap which then lets me access the objects by key, although the Array simple returns Object, and I cant

Re: Return Complex Types.

2010-04-26 Thread Stanislav Miklik
Hi, since you don't get a class cast exception, everything seems to be working as it should be. in your print you probably get something like [Ljava.lang.Object;@1100d7a but this means that you have array of Objects Thus you can access the first person as people[0]. The corresponding type will

Re: Return Complex Types.

2010-04-26 Thread Craig Kelley
On Mon, Apr 26, 2010 at 2:07 PM, Stanislav Miklik stanislav.mik...@gmail.com wrote: hm, try wireshark or something similar. I don't know better solution. Seconded. Capture the session in Wireshark, and then follow the TCP stream. You will then see both the XMLPRC request and response, and it