On 06/06/12 16:18, icfantv wrote:
So, after a ton of trial and error, I think we've found the root issue and I
can't find it documented anywhere.

For fields that represent collections, it appears you need to add both the
XmlElement("...") and XmlElementWrapper("...") attributes or empty
collections will not be serialized and will result in the deserialized
object version having a null value rather than empty.

Can anyone speak as to why this is the case?  Thanks.
I think this is a JAXB issue which Dan is also referring to

Cheers, Sergey

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Empty-vs-Null-collection-serialization-issues-in-JAX-B-over-REST-tp5709155p5709207.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to