Hi Alex,

That is a problem - JiBX currently supports xsi:nil for objects with 
structure by using the nillable="true" attribute on the <structure> 
definition, but not for simple <value>s.

If you're defining the schema yourself it's generally cleaner to use 
minOccurs="0" rather than nillable="true". This is equivalent for most 
purposes, and is a cleaner representation - if the value isn't defined, 
the corresponding element is just skipped.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Grivnin, Alexander wrote:
> Hi,
>
>  We have a problem when axis2 client (which is .Net) sends <dateValue
> xsi:nil="true"/> as a value for one of the object's fields. The server
> responses with the exception complaining about date format. It says
> "Missing 'T' separator in dateTime". Of course if request does not
> contain this element everything is handled correctly. Here are the
> definitions:
>
>  The schema defines:
>       <element name="creationDate" type="xs:dateTime"
> nillable="true"/>
>
>  The mapping has:
>
>       <value name="creationDate" field="creationDate"
>                       ns="http://mercury.com/ppm/dm/1.0";
> usage="optional" />
>
>  Do you know if we need to add some special attributes that will enable
> handling of the xsi:nil construct?
>
>
> Thanks in advance,
> Alex
>  
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to