Happy new year from 2017!

I tried your suggestion of jaxb:serializable, but I get "references a not
well-formed xml document".

This works:

<jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
                    
                    <jxb:javaType name="java.util.Date"
xmlType="xs:dateTime"
                                 
parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime"
                                 
printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime"/>
                  </jxb:globalBindings>

This does not work:

<jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
                    <jaxb:serializable />
                    <jxb:javaType name="java.util.Date"
xmlType="xs:dateTime"
                                 
parseMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.parseDateTime"
                                 
printMethod="org.apache.cxf.xjc.runtime.DataTypeAdapter.printDateTime"/>
                  </jxb:globalBindings>



--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-make-generated-objects-Serializable-tp556568p5777650.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to