James,

Have you tried our CXF example.

You can find a functioning demo in our repository. Instructions here:
http://jibx.sourceforge.net/maven-jibx-plugin/webservice.html

You can also find several step-by-step example in by blog:
http://blog.tourgeek.com

I hope this helps.

Don

Message: 2
> Date: Wed, 13 Mar 2013 17:41:17 +0000
> From: James Annesley <ja...@annesley.net>
> Subject: [jibx-users] CXF-codegen-plugin JIBX customization
> To: jibx-users@lists.sourceforge.net
> Message-ID:
>         <CAM8iT1VDYCWqfHMxgdvp=KG-nWDydXxSRhD_KE=
> 3wtrysaf...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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>
> -------------- next part --------------
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to