Hi Kiran:

I have test version2.2.3, it supports outputting collection now.

following is a demo code:

        @GET
        @Path("/customers/")
        public List<Customer> getCustomers() {
                List<Customer> list = new ArrayList<Customer>();
                Customer c = new Customer();

                c.setName("John1");
                c.setId(123);
                list.add(c);

                c.setName("John2");
                c.setId(234);
                list.add(c);
                Customers cs = new Customers();
                cs.setCustomer(list);
                return list;
        }

So I use the Ajax request to get the response and it will be:

{"Customer":[{"id":234,"name":"John2"},{"id":234,"name":"John2"}]}


kiran.sidhu wrote:
> 
> Has anybody tried getting the collection out from the Response on the
> client side ?
> 
> -----Original Message-----
> ...
> 

-- 
View this message in context: 
http://www.nabble.com/Handling-Collection%3CJAXBElement%3E-returns-via-JAX-RS-tp24262522p24910154.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to