axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/message MessageElement.java
Date Mon, 01 Aug 2005 13:33:23 GMT
dims        2005/08/01 06:33:23

  Modified:    java/src/org/apache/axis/message MessageElement.java
  Log:
  Fix for AXIS-2153 - Method org.apache.axis.message.MessageElement.getValue() always returns
null in a SAP WAS environment
  
  from Thomas Mayr
  
  Revision  Changes    Path
  1.200     +4 -3      ws-axis/java/src/org/apache/axis/message/MessageElement.java
  
  Index: MessageElement.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/MessageElement.java,v
  retrieving revision 1.199
  retrieving revision 1.200
  diff -u -r1.199 -r1.200
  --- MessageElement.java	11 Jun 2005 01:42:27 -0000	1.199
  +++ MessageElement.java	1 Aug 2005 13:33:23 -0000	1.200
  @@ -2091,9 +2091,10 @@
           }
   
           for (Iterator i = getChildElements(); i.hasNext(); ) {
  -            NodeImpl n = (NodeImpl) i.next();
  -            if (n instanceof Text) {
  -                return ((Text)n).getNodeValue();
  +            org.apache.axis.message.NodeImpl n = (org.apache.axis.message.NodeImpl) i.next();
  +            if (n instanceof org.apache.axis.message.Text) {
  +                org.apache.axis.message.Text textNode = (org.apache.axis.message.Text)
n;
  +                return textNode.getNodeValue();
               }
           }
   
  
  
  

Mime
View raw message