How to override JAXB Binding for JAX-WS/RS ?
Issue
- We want to deploy a WebService where the Method-Parameter-Objects are in a jar-file (module). These classes do not have any JAXB-Annotations.
- How to define the mapping in XML. We think there must be some kind of
jaxb-mapping.xmlfile ? - How to reference this mapping file from a JAX-WS Service Endpoint defined in the Application ?
-
And additionally we would like to reference the file from a JAXRS-Enmdpoint so both kind of Web Service use the same mapping. How can this be achieved?
-
We have some common classes in a custom module inside JBoss EAP. Now we want to write a new WS-Implementation that provides some method which take these classes as parameter. These classes can't be annotated with JAXB annotations as we have them only as binaries.
To simplify it, we could assume that we would like to map the classjavax.mail.internet.InternetAddressfor example to a custom XML-Format, let's say
<to>
<name>aaa</name>
<email>xyz.com</email>
</to>
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- JBossWS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
