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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:03:08+00:00 2026-06-02T21:03:08+00:00

We are using a top-down approach for a project with multiple web services (multiple

  • 0

We are using a top-down approach for a project with multiple web services (multiple WSDL’s). Each web service needs to be set up as a separate project and deployed as a separate war.

The problem is that the WSDL’s share a few common .xsd files. Currently if we run wsimport for each WSDL, the common JAXB classes are being duplicated in each web service project.

Ideally we would want to generate the JAXB classes separately in a common shared project, and then reuse the JAXB classes project in each of the web service projects, but wsimport does not provide the option to skip the JAXB class generation OR to specify a different location for the JAXB classes.

Any thoughts on how I can share the JAXB classes between different JAX-WS web service endpoints?

  • 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-02T21:03:09+00:00Added an answer on June 2, 2026 at 9:03 pm

    I know that this question is very old, but I wanted to share the answer for those that are looking. I know it took me a while to find the answer.

    As of JAXB 2.1 RI, there’s a feature called “episodes” that you can use to facilitate this.

    Let’s say you have a schema called myschema.xsd. Then you would want to call the following:

    xjc -episode myschema.episode myschema.xsd
    

    This also works if you are compiling multiple xsd files using a single call. The call will produce the bindings as well as the myschema.episode file.

    The episode file is a special bindings file. You can then use this file with wsimport, like so:

    wsimport mywsdl.wsdl -b myschema.episode
    

    wsimport will now use the previously generated JAXB files, and will generate anything that is missing.

    See this page for more information.

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

Sidebar

Related Questions

I created a Java Project in Eclipse using the Web services Top down approach
I am trying to create Web Services from the Top-Down approach. I downloaded Eclipse
I've written a simple top down parser using c#. It's a console application. I'd
We are developing a top-down RPG using XNA. Recently we bumped into a setback
Firstly - Z is Up in this problem. Context: Top down 2D Game using
I am making a top-down platformer game using sprites. I would like to add
I am using a top Panel Drop Down. Something similar to this http://www.yootheme.com/tools/extensions/yootoppanel Initially
I am following this tutorial on creating a top-down car using Box2D: Link: Two
Using top it's easy to identify processes that are hogging memory and cpu, but
I have an element in a page which is absolute positioned using TOP and

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.