axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser BeanSerializer.java
Date Fri, 02 Jul 2004 13:04:52 GMT
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
  
  
  

Mime
View raw message