• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

JAXRS/JAXWS/JAXB Webservices and Reflecting Custom Classes

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
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:

LibraryContainerClass
|
|
------ 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!
 
A wop bop a lu bop a womp bam boom! Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic