خرید بک لینک

Vote count: 0

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?

asked 33 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 21 فروردين 1396 ساعت: 0:32

صفحه بندی