Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 44980 invoked from network); 2 Jul 2004 13:05:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jul 2004 13:05:00 -0000 Received: (qmail 69200 invoked by uid 500); 2 Jul 2004 13:04:56 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 69158 invoked by uid 500); 2 Jul 2004 13:04:56 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 69140 invoked by uid 99); 2 Jul 2004 13:04:55 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 02 Jul 2004 06:04:55 -0700 Received: (qmail 44935 invoked by uid 1766); 2 Jul 2004 13:04:52 -0000 Date: 2 Jul 2004 13:04:52 -0000 Message-ID: <20040702130452.44934.qmail@minotaur.apache.org> From: ias@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser BeanSerializer.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ias 2004/07/02 06:04:52 Modified: java/src/org/apache/axis/encoding/ser BeanSerializer.java Log: Add conversion from false/true to 0/1 for serializing mustUnderstand field to soapenv:mustUnderstand attribute. Revision Changes Path 1.76 +8 -0 ws-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java Index: BeanSerializer.java =================================================================== RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- BeanSerializer.java 12 Apr 2004 03:30:59 -0000 1.75 +++ BeanSerializer.java 2 Jul 2004 13:04:52 -0000 1.76 @@ -514,6 +514,14 @@ !propertyDescriptor[i].isIndexed()) { // add to our attributes Object propValue = propertyDescriptor[i].get(value); + // Convert true/false to 1/0 in case of soapenv:mustUnderstand + if (qname.equals(new QName(Constants.URI_SOAP11_ENV, Constants.ATTR_MUST_UNDERSTAND))) { + if (propValue.equals(Boolean.TRUE)) { + propValue = "1"; + } else if (propValue.equals(Boolean.FALSE)) { + propValue = "0"; + } + } // If the property value does not exist, don't serialize // the attribute. In the future, the decision to serializer // the attribute may be more sophisticated. For example, don't