The XPath expression in my external binding files can\'t target the elements in my XML schemas which are imported into my WSDL.
Everything runs if I do inline bindin
You could compile each of the XML schemas to Java classes individually. Then you can leverage episode files so that the generated classes can be used when you compile schemas that import that XML schema.
Below is an example of how you produce an episode file.
xjc -b binding1.xml -episode common.episode common.xsd
And below is an example of how you consume and episode file. The episode file is just a JAXB external bindings file and therefore is specified using the -b
flag.
xjc -d out main.xsd -extension -b common.episode
For More Information