How to send the list of entities from the jersey service endpoint?
问题 I am sending the list of entities from the jersey server. At client side i am trying to get those list of entities. But it is giving unmarshal excepiton. Why it is adding 's' at the end of elementname i.e "emps" instead of "emp". @XmlRootElement public class Emp{ ... } Server side code: @POST @Path("/getallemps") @Produces(MediaType.APPLICATION_XML) @Consumes(MediaType.APPLICATION_XML) public List<Emp> getAllEmployees2(@Context HttpServletRequest request, @Context HttpServletResponse response