axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject Re: nill Deserialization Problems
Date Fri, 02 Nov 2001 13:21:23 GMT
Done

Russell Butek
butek@us.ibm.com


R J Scheuerle Jr/Austin/IBM@IBMUS on 11/01/2001 04:01:09 PM

Please respond to axis-dev@xml.apache.org

To:   axis-dev@xml.apache.org
cc:
Subject:  Re: nill Deserialization Problems



I have a fix for the nil Deserialization bug.

Please add the following code to the begining of the
org.apache.axis.encoding.Deserializer.startElement(....) method:

        // If the xsi:nil attribute, set the value to null and return since
        // there is nothing to deserialize.
        String nil = null;
        for (int i=0; i<Constants.URIS_SCHEMA_XSI.length && nil==null; i++)
            nil = attributes.getValue(Constants.URIS_SCHEMA_XSI[i], "nil");
        if (nil != null && nil.equals("true")) {
          value = null;
          return;
        }


Rich Scheuerle
ORB/IDLC Development
512-838-5115  (TL 678-5115)




Mime
View raw message