I have a GET function in my REST service that returns the list of objects in XML format.
@GET
@Path("all")
@Produces({"application/xml", "application/json"})
public List<Customer> findAll() {
return getJpaController().findCustomerEntities();
}
How can I unmarshall the list of XML to the list of objects? I would like to store all these customers from database into some List or Vector of Customers objects.