axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Fernando (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5140) Make null value serialization schema compliant.
Date Wed, 07 Sep 2011 16:53:11 GMT


Pradeep Fernando commented on AXIS2-5140:

Hi ,

Sorry for not logging the issue with proper details. Actually the issue with xsi:nil="1" is
that, it  is not in canonical form. In the XML schema spec it says , Canonical representation

The canonical representation for boolean is the set of literals {true, false}. 

The code generated right now is not compliant with canonical representation. I propose adding
a parameter which can pass in to adb codegeneration using the -E<param>, so that if
a user wants he/she can generate code wtih canonical representation.

please add your suggestions/comments

If the devs are ok with the proposed solution i can give a patch.


> Make null value serialization schema compliant.
> -----------------------------------------------
>                 Key: AXIS2-5140
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.6.0
>         Environment: Ubuntu Linux, JDK1.6
>            Reporter: Pradeep Fernando
>              Labels: adb-codegen, wsdl2java
>             Fix For: 1.7.0
>   Original Estimate: 4h
>  Remaining Estimate: 4h
> Code generated the skeleton using WSDL2Java and populated my business logic. When serializing
null values it serializes them as xsi:nil="1". But it should be corrected as 
> xsi:nil="true"

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message