Implement a resource method using JAXB objects for XML content.
Configure the JAX-RS application.
Parent
Use XML content in JAX-RS application requests and responses
We can use JAXB objects as request entity parameters and response entities with JAX-RS applications. Instead of transforming XML to and from native Java types, we can take advantage of using JAXB objects.
What to do next
Assemble JAX-RS web applications.
Subtopics
- Implement a resource method using JAXB objects for XML content
We can process XML in requests and responses using JAXB annotated classes.
- Use JAXB for XML data binding
JAXB is a Java technology that provides an easy and convenient way to map Java classes and XML schema for simplified web services development. JAXB provides the xjc schema compiler, the schemagen schema generator and a runtime framework to support marshalling and unmarshalling of XML documents to and from Java objects.
Related tasks
Implement a resource method using JAXB objects for XML content Use JAXB for XML data binding