Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8313889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:38:33+00:00 2026-06-08T20:38:33+00:00

Tech Stack: Java 1.6, JPA (Hibernate 3), Spring 3, Oracle 11g Hello, We are

  • 0

Tech Stack: Java 1.6, JPA (Hibernate 3), Spring 3, Oracle 11g

Hello,

We are currently refactoring our code to move away from SOAP based web-services to REST.
I’ve got loads of XSD, these were used for SOAP based WS. And there are tons of JAXB classes generated using these schema files.

My question is can I use the same JAXB classes for REST (in and out) or not.
I’ve no experience with REST.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:38:35+00:00Added an answer on June 8, 2026 at 8:38 pm

    It’s better than you might think. Just take your JAXB object that you used previously for SOAP endpoints and return them from controllers:

    public @ResponseBody JAXBElement<JaxbResponseType> 
    controllerMethod(@RequestPayload JAXBElement<JaxbRequestType> request) {
        //...
    }
    

    Spring, seeing JAXB annotations, will automatically marshall them to XML and JSON. This should be a good starting point, not to mention your REST services will have similar structure to SOAP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Tech Stack : Java 1.6, JPA (Hibernate 3), Spring 3, Oracle 11g, JAX-RS (RESTEasy)
Possible Duplicate: iPhone development on Windows We are about to begin our first med-tech
Our inHouse tech have installed our own app to some of our iPods 3.x
I'm developing out replacements for our company's web service stack. The current stack was
https://i.stack.imgur.com/YZXZN.png (I'm currently not allowed to embed images) I could really use some help
I'm currently researching XNA and C# 3.0, and other related tech (Maya 2009) and
I'm in the process of trying to move our company from SalesForce to SugarCRM,
We want to use flex tech to replace our old dashboard ui. Could you
I downloaded the STL source code from http://www.sgi.com/tech/stl/download.html , but it only has the
We have a tech support website/database at work that we use to record our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.