views:

25

answers:

1

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?

A: 

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:

Blaise Doughan