opensubscriber
   Find in this group all groups
 
Unknown more information…

a : axis-dev@ws.apache.org 26 August 2009 • 10:28PM -0400

[jira] Created: (AXIS2-4476) Support of xsi:nil="false"
by Johannes Dietrich (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP




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


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.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.