axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r395509 - /webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java
Date Thu, 20 Apr 2006 06:44:15 GMT
Author: ruchithf
Date: Wed Apr 19 23:44:13 2006
New Revision: 395509

URL: http://svn.apache.org/viewcvs?rev=395509&view=rev
Log:
fix the build ... handle unqualified elements correctly

Modified:
    webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java

Modified: webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java?rev=395509&r1=395508&r2=395509&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java
Wed Apr 19 23:44:13 2006
@@ -125,9 +125,15 @@
         if (omSOAPBody.hasFault()) {
             throw new SOAPException("A SOAPFault has been already added to this SOAPBody");
         }
-        SOAPBodyElementImpl childEle = new SOAPBodyElementImpl(
+        SOAPBodyElementImpl childEle;
+        if(uri == null || "".equals(uri)) {
+            childEle = new SOAPBodyElementImpl(
+                    (ElementImpl) getOwnerDocument().createElement(localName));
+        } else {
+            childEle = new SOAPBodyElementImpl(
                 (ElementImpl) getOwnerDocument().createElementNS(uri,
                         prefix + ":" + localName));
+        }
         childEle.element.setUserData(SAAJ_NODE, childEle, null);
         childEle.element.setNamespace(childEle.element.declareNamespace(uri, prefix));
         element.appendChild(childEle.element);



Mime
View raw message