Andreas Schildbach wrote:

Hello Denis,

This "external bindings declaration" is just a file used at compilation
time. Pass it to xjc (JAXB's binding compiler) and it will generate
classes in the proper packages.


The question is how can I pass the file to xjc, when I am not directly using xjc but XFire's "wsgen" instead? Is wsgen even using xjc internally?

Regards,

Andreas

WSGen is using XJC via its API internally. We just need to pass off the binding files to it. This is where the magic happens:

http://svn.xfire.codehaus.org/viewrep/xfire/trunk/xfire/xfire-generator/src/main/org/codehaus/xfire/gen/jaxb/JAXBSchemaSupport.java?r=1282

As you can see, I have some code commented out there which passes the jaxb binding files. We just need to enable it and provide a way to provide to tell WSGen about the files.

- Dan

--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com

Reply via email to