Hi James,
I have implemented a sample application to demonstrate the usage of Apache CXF with JiBX databing using customization. In my example the JiBX classes are also decorated with a Serializable interface. Have a look at it, it might help you.
https://github.com/FrVaBe/cxf-soap-with-jibx#readme
Regards
Franz
Gesendet: Mittwoch, 13. März 2013 um 18:41 Uhr
Von: "James Annesley" <ja...@annesley.net>
An: jibx-users@lists.sourceforge.net
Betreff: [jibx-users] CXF-codegen-plugin JIBX customization
Von: "James Annesley" <ja...@annesley.net>
An: jibx-users@lists.sourceforge.net
Betreff: [jibx-users] CXF-codegen-plugin JIBX customization
Hi,
I want to use the CXF-codegen-plugin to generate JIBX-based Java source code from my WSDL. I have been successfully using it to produce JAXB-based source code. I can get it to work but I need a bindings file to ensure the created classes all implement java.io.Serializable and also that dates use java.util.Date. The bindings file is included at the end of this message. I attach the binding file to the configuration part of the generate-sources part of the cxf-codegen-plugin via the <bindingFiles> tag. How do I do the same for JIBX?
I have tried a similar method using <schema-set> but it didn't work. For some reason I got a "file not found" error.
Many thanks for your help in advance,
James
<jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jaxb:globalBindings generateElementProperty="false">
<jaxb:javaType name="java.util.Date" xmlType="xs:dateTime"
parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime"
printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime"/>
<jaxb:serializable />
</jaxb:globalBindings>
</jaxb:bindings>
------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users