axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r518962 - /webservices/axis2/trunk/java/modules/saaj-api/src/javax/xml/soap/SAAJResult.java
Date Fri, 16 Mar 2007 13:01:44 GMT
Author: dims
Date: Fri Mar 16 06:01:43 2007
New Revision: 518962

URL: http://svn.apache.org/viewvc?view=rev&rev=518962
Log:
Fix for AXIS2-2331 - SAAJ API issue

Modified:
    webservices/axis2/trunk/java/modules/saaj-api/src/javax/xml/soap/SAAJResult.java

Modified: webservices/axis2/trunk/java/modules/saaj-api/src/javax/xml/soap/SAAJResult.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj-api/src/javax/xml/soap/SAAJResult.java?view=diff&rev=518962&r1=518961&r2=518962
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj-api/src/javax/xml/soap/SAAJResult.java (original)
+++ webservices/axis2/trunk/java/modules/saaj-api/src/javax/xml/soap/SAAJResult.java Fri Mar
16 06:01:43 2007
@@ -18,13 +18,21 @@
 
 import javax.xml.transform.dom.DOMResult;
 
+import org.w3c.dom.NodeList;
+
 public class SAAJResult extends DOMResult {
 
     public SAAJResult()
             throws SOAPException {
         this(MessageFactory.newInstance().createMessage());
         org.w3c.dom.Node node = this.getNode();
-        node.removeChild(node.getFirstChild());
+        NodeList nodeList = node.getChildNodes();
+        if(nodeList != null){
+        	int size = nodeList.getLength();
+        	for(int a = 0;a < size;a++){
+                node.removeChild(nodeList.item(a));        		
+        	}
+        }
         this.setNode(null);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message