On Tue, Aug 2, 2011 at 10:42 PM, Barry Hathaway <bhath...@nycap.rr.com> wrote:
> Sagara,
>
> I'll have to give the snapshot a try, currently I am using 1.6.0.
> I did try changing the method to return Object[] and then later
> List<Object>.
> In both cases I received the same:

Axis2 1.6.0 has limited support on above stuff better to test using
1.7.0-SNAPSHOTS and these features will available on 1.7.0 version.

Thanks !

>
> Response from 'query' operation: [<empty
> xmlns="http://www.w3.org/2001/XMLSchema";>false</empty>]
>
> response.
> Thanks.
>
> Barry
>
> On 8/2/2011 10:38 AM, Sagara Gunathunga wrote:
>>
>> Can you try using latest Axis2 1.7.0-SNAPSHOTS ? BTW I don't think
>> this is supported instead you could try for List of List in Axis2
>> 1.7.0-SNAPSHOTS.
>>
>> Thanks !
>>
>> On Tue, Aug 2, 2011 at 8:00 PM, Barry Hathaway<bhath...@nycap.rr.com>
>>  wrote:
>>>
>>> I have a POJO service method at returns a List<Object>[]:
>>>
>>>      public List<Object>[] query(String sparcql)
>>>
>>> Then in my client I have:
>>>
>>>        Class[] queryReturnTypes = new Class[] { List[].class };
>>>        try {
>>>            Object[] queryResponse =
>>> serviceClient.invokeBlocking(queryQName,
>>>                    queryArgs, queryReturnTypes);
>>>            List<Object>[] rs = (List<Object>[]) queryResponse[0];
>>>            for (int i=0; i<rs.length; i++) {
>>>                log.info("Response from 'query' operation:
>>> "+rs[i].toString());
>>>            }
>>>
>>> Debug statements within the query method indicate that I'm returning 2
>>> lists
>>> (array size is 2);
>>> however, the above logs statements print out:
>>>
>>> Response from 'query' operation: [<empty
>>> xmlns="http://www.w3.org/2001/XMLSchema";>false</empty>]
>>> Response from 'query' operation: [<empty
>>> xmlns="http://www.w3.org/2001/XMLSchema";>false</empty>]
>>>
>>> If I replace the return type with just List.class then I only get the
>>> first
>>> of the two above results.
>>> What gives?  How do I return and reference a List<Object>[]?
>>> Thanks.
>>>
>>> Barry Hathaway
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
>>> For additional commands, e-mail: java-user-h...@axis.apache.org
>>>
>>>
>>
>>
>
>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to