• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAXRS/JAXWS/JAXB Webservices and Reflecting Custom Classes  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am involved with a project now where we are trying to provide a (JAX-RS/JAX-WS/JAXB) web services library that allows implementers to write their own classes for customizing the format of a web service response. It requires obviously that the java classes that ultimately get serialized by JAX-RS/JAXB as part of the response are loaded as part of the library user's runtime.

In any case, does anyone know if its possible to do something like the following:

------ ContainedUserClass

where the JAX-RS/JAX-WS/JAXB - based webservices library can serialize the contained user class (i.e. ContainedUserClass) without explicitly knowing the structure. For instance, is there some way to have the library use reflection to derive the structure needed by jaxb to serialize the output?

I tried having an abstract class that the library user's output class must extend, but it didn't work.

Any response is appreciated (including even perhaps directing me to someone or something else). Thanks for any reply!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!