You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/07/25 01:18:02 UTC

svn commit: r425221 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/util/RESTUtil.java

Author: dims
Date: Mon Jul 24 16:18:02 2006
New Revision: 425221

URL: http://svn.apache.org/viewvc?rev=425221&view=rev
Log:
Setting the parent causes a full build, avoid it by setting the parent to null


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/util/RESTUtil.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/util/RESTUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/util/RESTUtil.java?rev=425221&r1=425220&r2=425221&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/util/RESTUtil.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/util/RESTUtil.java Mon Jul 24 16:18:02 2006
@@ -17,6 +17,7 @@
 
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.impl.builder.StAXOMBuilder;
+import org.apache.axiom.om.impl.OMNodeEx;
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axiom.soap.SOAPBody;
 import org.apache.axiom.soap.SOAPEnvelope;
@@ -196,7 +197,9 @@
                     msgCtxt.setProperty(MessageContext.CHARACTER_SET_ENCODING, charSetEnc);
                 }
 
-                body.addChild(new StAXOMBuilder(xmlreader).getDocumentElement());
+                OMNodeEx documentElement = (OMNodeEx)new StAXOMBuilder(xmlreader).getDocumentElement();
+                documentElement.setParent(null);
+                body.addChild(documentElement);
 
                 // if the media type is multipart/related, get help from Axis2 :)
             } else if (checkContentType(HTTPConstants.MEDIA_TYPE_MULTIPART_RELATED, contentType)) {



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