axis-java-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AXIS2-5140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099092#comment-13099092
] 

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 ,

3.2.2.2 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.

thanks,
--Pradeep

> Make null value serialization schema compliant.
> -----------------------------------------------
>
>                 Key: AXIS2-5140
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5140
>             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: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message