synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u...@apache.org
Subject svn commit: r601625 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java
Date Thu, 06 Dec 2007 05:53:11 GMT
Author: upul
Date: Wed Dec  5 21:52:57 2007
New Revision: 601625

URL: http://svn.apache.org/viewvc?rev=601625&view=rev
Log:
in soap version conversions, work with a cloned envelope

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java?rev=601625&r1=601624&r2=601625&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java
Wed Dec  5 21:52:57 2007
@@ -27,6 +27,9 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.synapse.SynapseException;
+import org.apache.synapse.util.MessageHelper;
+
+import com.sun.corba.se.impl.protocol.giopmsgheaders.MessageHandler;
 
 import java.util.Iterator;
 import java.util.List;
@@ -88,7 +91,8 @@
         if(log.isDebugEnabled()) {
             log.debug("convert SOAP11 to SOAP12");
         }
-        SOAPEnvelope oldEnvelope = axisOutMsgCtx.getEnvelope();
+        // get a clone otherwise affects original message context
+        SOAPEnvelope oldEnvelope = MessageHelper.cloneSOAPEnvelope(axisOutMsgCtx.getEnvelope());
 
         SOAPFactory soap12Factory = OMAbstractFactory.getSOAP12Factory();
         SOAPEnvelope newEnvelope  = soap12Factory.getDefaultEnvelope();
@@ -225,7 +229,8 @@
         if (log.isDebugEnabled()) {
             log.debug("convert SOAP12 to SOAP11");
         }
-        SOAPEnvelope oldEnvelope = axisOutMsgCtx.getEnvelope();
+        // get a clone otherwise affects original message context
+        SOAPEnvelope oldEnvelope = MessageHelper.cloneSOAPEnvelope(axisOutMsgCtx.getEnvelope());
 
         SOAPFactory soap11Factory = OMAbstractFactory.getSOAP11Factory();
         SOAPEnvelope newEnvelope  = soap11Factory.getDefaultEnvelope();



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


Mime
View raw message