axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Hathaway <>
Subject Returning list arrays
Date Tue, 02 Aug 2011 14:30:38 GMT
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 = 
                     queryArgs, queryReturnTypes);
             List<Object>[] rs = (List<Object>[]) queryResponse[0];
             for (int i=0; i<rs.length; i++) {
       "Response from 'query' operation: 

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 
Response from 'query' operation: [<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>[]?

Barry Hathaway

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message