5

I have some common types which are defined in an xsd file which is then later bundled as a jar file. I have this jar file in my classpath and I want to include this xsd into another xsd to use those types. How to refer the schema in a jar file? Also I want to create JAXB objects from the new schema is it possible. Also I want to use this new schema into my WSDL. Is it possible?

user483513
  • 83
  • 1
  • 2
  • 5

1 Answers1

0

The XJC tool offers a schema catalog mechanism for handling problematic imported/included schemas:

In your case you may need to interact with XJC programmatically. Check out one of my answers to a previous question to see how this is done:

beat
  • 1,857
  • 1
  • 22
  • 36
bdoughan
  • 147,609
  • 23
  • 300
  • 400