2

I have multiple WSDL/XSD files and using JAXB I'm generating it's clients. But there are some common classes among them all, that I have in a separate project.

I'm able to customize the whole generation, informing custom names to client classes as needed. But for those common classes, I would like just to inform their names for reference, but not generate them, using the ones provided in another project, and included in the classpath.

Is that possible using JAXB customizations?

Thanks in advance!

ThiagoUriel
  • 115
  • 6

1 Answers1

1

The answer linked below demonstrates how to use a JAXB external bindings file to specify that a type in an XML schema corresponds to an existing Java class:

If the existing classes are also generated from an XML schema, then you may be interested in the -episode extension that enables the artifacts generated from an XML schema to be used by the artifacts generated by another schema that imports the first.

Community
  • 1
  • 1
bdoughan
  • 147,609
  • 23
  • 300
  • 400