JAX-RS XML Service using JAXB

Tutorials Shared by the Internet Community

Advertisements


Synopsis

JAX-RS XML Service using JAXB - Java Tutorials Corner

Statistics

  • Total Hits - 6242

  • Total Votes - 6 votes

  • Vote Up - 3 votes

  • Vote Down - 3 votes

  • Domain - www.javatutorialcorner.com

  • Category - JAVA/Java XML

  • Submitted By - Appu T

  • Submitted on - 2014-03-15 11:47:19

Description

In this tutorial we are going to see how to convert object to XML using JAXB and return back to user using JAX-RS RESTful web service. 1. Create new Dynamic web project by choosing File –> New –> Dynamic Web Project . 2. Create the Project called RESTful-WebService3. Add the following jar into WEF-INF/lib folder 4. Create package called com.javatutorialscorner.jaxrs.xmlservice under RESTful-WebService5. Create Java class JAXBXMLService under com.javatutorialscorner.jaxrs.xmlservice package JAXBXMLService.javapackage com.javatutorialscorner.jaxrs.xmlservice;import... ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements