Author: midon
Date: Tue Jul  1 17:03:12 2008
New Revision: 673236

URL: http://svn.apache.org/viewvc?rev=673236&view=rev
Log:
node from another document must be imported first

Modified:
    
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpClientHelper.java

Modified: 
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpClientHelper.java
URL: 
http://svn.apache.org/viewvc/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpClientHelper.java?rev=673236&r1=673235&r2=673236&view=diff
==============================================================================
--- 
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpClientHelper.java
 (original)
+++ 
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/httpbinding/HttpClientHelper.java
 Tue Jul  1 17:03:12 2008
@@ -168,7 +168,7 @@
             if (bodyIsXml) {
                 try {
                     Element parsedBodyEl = 
DOMUtils.parse(bodyAsStream).getDocumentElement();
-                    bodyEl.appendChild(parsedBodyEl);
+                    bodyEl.appendChild(doc.importNode(parsedBodyEl, true));
                 } catch (Exception e) {
                     String errmsg = "Unable to parse the response body as xml. 
Body will be inserted as string.";
                     if (log.isDebugEnabled()) log.debug(errmsg, e);


Reply via email to