I have a legacy class that should be returned from rest webservice (jersey, consumes/produces XML) which is aotated only with
@XmlType
and not @XmlRootElement
therefore getting an exception:
com.sun.jersey.api.MessageException: A message body writer for Java class org.types.Info, and Java type class org.types.Info, and MIME media type application/xml was not found
There is no way to modify the class and add the missing aotation.
Is there something can be done beside creating a new class that will be aotated properly?
