Re: Return Complex Types.

2010-04-26 Thread David J.
Thanks both for your help, I could do that, I was just wondering if there was a method like setDebug(true) that may have been a helper method. But I can get it that way also. Thanks. (I just think that the call was returning an empty Array. I made another call and it worked) On 4/26/10 4:

Re: Return Complex Types.

2010-04-26 Thread Craig Kelley
On Mon, Apr 26, 2010 at 2:07 PM, Stanislav Miklik 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 will probably become obviou

Re: Return Complex Types.

2010-04-26 Thread Stanislav Miklik
hm, try wireshark or something similar. I don't know better solution. On Mon, Apr 26, 2010 at 21:54, David J. wrote: > Thanks for your help Stano, > > I try to access the object by index, (people[0]) but I get an index out of > bounds exception. > > Is there a way I can set debug on the response

Re: Return Complex Types.

2010-04-26 Thread David J.
Thanks for your help Stano, I try to access the object by index, (people[0]) but I get an index out of bounds exception. Is there a way I can set debug on the response to see the raw method response? Thanks. On 4/26/10 3:12 PM, Stanislav Miklik wrote: Hi, since you don't get a class cas

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 be

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 access