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 3286432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:22:46+00:00 2026-05-17T20:22:46+00:00

Java EE 6, NetBeans 6.9.1. Part of my project is a SOAPy web service.

  • 0

Java EE 6, NetBeans 6.9.1.

Part of my project is a SOAPy web service. I’ve written the server-side part of it, and that seems to work OK because GlassFish 3.0.1 is correctly generating WSDL files for the web services.

The web service sends and receives JPA entity classes, which the client operates on. I used NetBeans’ “New > Web Service Client” wizard to generate the source code for the resource classes that represent the entities when they get sent by the web service — these resources have the same fields as the entity classes, getters and setters for those fields, and certain annotations from javax.xml.bind.annotation (e.g., @XmlAccessorType, @XmlType, @XmlElement), but they lack the other methods, etc. of the entity classes.

Once my web service client receives these resources, how do I get back the proper entity objects? I’d rather not manually reconstruct every entity, considering how many classes I have and how complicated their relationships are, this would be a lot of work.

Thank you! 🙂

P.S. I’m not sure what these resources classes are called; if anyone knows, it would help me write a more descriptive title.

  • 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-05-17T20:22:47+00:00Added an answer on May 17, 2026 at 8:22 pm

    One option would be to use a JAXB and JPA combo with something like HyperJAXB 3. Have a look at:

    • Relational storage using JAXB, JPA and HyperJAXB
    • Building JAX-WS, JAXB and JPA-based web service with Apache CXF, Spring and Hyperjaxb3
    • From WSDL to JAXB to JPA with a single schema: Adventures in Hyperjaxb3

    Or using a JAXB implementation providing JPA support through extensions like MOXy:

    • JPA Entities to XML – Bidirectional Relationships (and Blaise’s blog in general)
    • Creating a RESTful Web Service – Part 1/5
    • EclipseLink/Examples/MOXy/JPA
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current task is taking a Java project written and developed in Ubuntu NetBeans
I'm developing a web application using JSF 2.0, NetBeans 6.9.1, GlassFish Server 3.1, mojarra
I have one java project in netBeans. There are some packages, and classes in
I am using Netbeans IDE for a java project. In this project i need
Start a new web application using NetBeans 7 on GlassFish 3.1 In index.xhtml body
I'm trying to debug a method in Java using NetBeans. That method is: public
I'm trying to debug a method in Java using NetBeans. That method is: public
I'm new to Java, and have set myself a project to write so that
I have the default generated ant script for my netbeans java project and it
As part of a project, I have to develop a web application and a

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.