axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4476) Support of xsi:nil="false"
Date Thu, 27 Aug 2009 04:48:59 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi resolved AXIS2-4476.
-------------------------------------------------

    Resolution: Fixed

Apply the change to current trunk[1]. Please send us a patch when you send improvements.


[1] http://svn.apache.org/viewvc?view=rev&revision=808279

> Support of xsi:nil="false"
> --------------------------
>
>                 Key: AXIS2-4476
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4476
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.4.1
>            Reporter: Johannes Dietrich
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> Our backend system sends <type xsi:nil="false">10</type> when the attribute
is defined in the wsdl as  nillable="true". Without a custom fixing with the following code
(in org.apache.axis2.databinding.utils.BeanUtil.deserialize(Class, OMElement, ObjectSupplier,
String)), null would be returned.
> Object partObj;
> boolean isNil = false;
> if (attribute != null) {
> 	String nilValue = attribute.getAttributeValue();
> 	if("true".equals(nilValue) || "1".equals(nilValue)){
> 		isNil = true;
> 	}
> }
> if (isNil) {
>     partObj = null;
> } else {
>     if (SimpleTypeMapper.isSimpleType(parameters)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message