You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ja...@external.t-mobile.at on 2008/04/28 21:29:17 UTC
Antwort: How to make generated objects Serializable [Virus checked]
https://jaxb.dev.java.net/2.1.2/docs/vendorCustomizations.html
http://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomizations.html
best regards
jano
Christopher.Mathrusse@sybase.com
04/28/2008 21:16
Bitte antworten an
users@cxf.apache.org
An
users@cxf.apache.org
Kopie
Thema
How to make generated objects Serializable [Virus checked]
I'm using wsdl2java to generate my client objects but they are not
serializable. Is there an option I can give to wsdl2java or some form of
binding file I can provide that will cause all of my generated objects to
be Serializable?
Thanks...
Chris
Re: Antwort: How to make generated objects Serializable [Virus
checked]
Posted by eaudet <ea...@jarics.com>.
Thanks Dan!
Saves me lots of time too.
- Erick
--
View this message in context: http://cxf.547215.n5.nabble.com/How-to-make-generated-objects-Serializable-tp556568p4259372.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Antwort: How to make generated objects Serializable [Virus
checked]
Posted by jkoorts <jk...@gmail.com>.
Here a working example for the next guy:
<jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:serializable uid="1"/>
<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-tp556568p5777651.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Antwort: How to make generated objects Serializable [Virus
checked]
Posted by jkoorts <jk...@gmail.com>.
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.
Re: How to make generated objects Serializable
Posted by Ch...@sybase.com.
OMG!! That was sooooo simple!!! That saved me a huge amount of time
reading through the documentation trying to figure out how to fit things
all together.
Once again, Dan to the rescue!!!
Thanks very much!!!
Chris
Daniel Kulp <dk...@apache.org>
04/28/2008 12:46 PM
Please respond to
users@cxf.apache.org
To
users@cxf.apache.org
cc
jan.minaroviech@external.t-mobile.at
Subject
Re: Antwort: How to make generated objects Serializable [Virus checked]
Actually, the JAXB specification specifically allows for Serializable
without resorting to the vendor customizations. In the globalBindings
section of your customization bindings file, you can just add a
jaxb:serializable element and all the types will implement serializable.
Dan
On Monday 28 April 2008, jan.minaroviech@external.t-mobile.at wrote:
> https://jaxb.dev.java.net/2.1.2/docs/vendorCustomizations.html
> http://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomizations.htm
>l
>
> best regards
> jano
>
>
>
>
> Christopher.Mathrusse@sybase.com
> 04/28/2008 21:16
> Bitte antworten an
> users@cxf.apache.org
>
>
> An
> users@cxf.apache.org
> Kopie
>
> Thema
> How to make generated objects Serializable [Virus checked]
>
>
>
>
>
>
> I'm using wsdl2java to generate my client objects but they are not
> serializable. Is there an option I can give to wsdl2java or some form
> of binding file I can provide that will cause all of my generated
> objects to be Serializable?
>
> Thanks...
>
> Chris
--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog
Re: Antwort: How to make generated objects Serializable [Virus checked]
Posted by Daniel Kulp <dk...@apache.org>.
Actually, the JAXB specification specifically allows for Serializable
without resorting to the vendor customizations. In the globalBindings
section of your customization bindings file, you can just add a
jaxb:serializable element and all the types will implement serializable.
Dan
On Monday 28 April 2008, jan.minaroviech@external.t-mobile.at wrote:
> https://jaxb.dev.java.net/2.1.2/docs/vendorCustomizations.html
> http://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomizations.htm
>l
>
> best regards
> jano
>
>
>
>
> Christopher.Mathrusse@sybase.com
> 04/28/2008 21:16
> Bitte antworten an
> users@cxf.apache.org
>
>
> An
> users@cxf.apache.org
> Kopie
>
> Thema
> How to make generated objects Serializable [Virus checked]
>
>
>
>
>
>
> I'm using wsdl2java to generate my client objects but they are not
> serializable. Is there an option I can give to wsdl2java or some form
> of binding file I can provide that will cause all of my generated
> objects to be Serializable?
>
> Thanks...
>
> Chris
--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog