If the xml schema element has minOccurs=0 nullable=true (the default) then a null Java field of type Data will 'disappear' in the output. If you force minOccurs=1 then you will get a null.
-----Original Message----- From: christophe blin [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 11:42 AM To: [email protected] Subject: [xfire-user] Problem to serialize null date ? Hi, I'd like to know if someone encounter problem with the XFire serialization and a java.util.Date getter When I use this class : class Test { private Date date1; private Long long1; /*getter and setter skipped*/ } and when a method returns such an Object, if date1 is null then the field does not appear in the SOAP response whereas if long1 is null then it contains <long1 xsi:nil="true" />. Does anybody knows what I am doing wrong (or maybe xfire is doing wrong) regards, chris -- View this message in context: http://www.nabble.com/Problem-to-serialize-null-date---tf2908795.html#a8 126631 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
