I need a response which is a List of class, where the class is not a user-defined POJO, it is an existing interface. So I created a POJO and added this List as a field in the created POJO. Still, JAX-RS couldn't parse this as I have an interface defined in the XML response structure. Is there a better way of doing this? Is there an alternate to using @XmlRootElement for such cases?
No comments:
Post a Comment