axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r658717 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
Date Wed, 21 May 2008 14:47:36 GMT
Author: amilas
Date: Wed May 21 07:47:35 2008
New Revision: 658717

URL: http://svn.apache.org/viewvc?rev=658717&view=rev
Log:
set the response binding message

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java?rev=658717&r1=658716&r2=658717&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
Wed May 21 07:47:35 2008
@@ -48,11 +48,7 @@
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.OperationContext;
-import org.apache.axis2.description.AxisOperation;
-import org.apache.axis2.description.AxisService;
-import org.apache.axis2.description.Parameter;
-import org.apache.axis2.description.TransportOutDescription;
-import org.apache.axis2.description.WSDL2Constants;
+import org.apache.axis2.description.*;
 import org.apache.axis2.i18n.Messages;
 import org.apache.axis2.transport.http.HTTPConstants;
 import org.apache.axis2.wsdl.WSDLConstants;
@@ -183,13 +179,25 @@
             newmsgCtx.setWSAAction(inMessageContext.getWSAAction());
         }
 
-        if (ao != null)
-            newmsgCtx.setAxisMessage(ao.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE));
+        if (ao != null){
+           newmsgCtx.setAxisMessage(ao.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE));
+        }
+
+        // setting the out bound binding message
+        AxisBindingMessage inboundAxisBindingMessage
+                = (AxisBindingMessage)inMessageContext.getProperty(Constants.AXIS_BINDING_MESSAGE);
+        if (inboundAxisBindingMessage != null){
+            AxisBindingOperation axisBindingOperation = inboundAxisBindingMessage.getAxisBindingOperation();
+            newmsgCtx.setProperty(Constants.AXIS_BINDING_MESSAGE,
+                    axisBindingOperation.getChild(WSDLConstants.MESSAGE_LABEL_OUT_VALUE));
+        }
 
         newmsgCtx.setDoingMTOM(inMessageContext.isDoingMTOM());
         newmsgCtx.setDoingSwA(inMessageContext.isDoingSwA());
         newmsgCtx.setServiceGroupContextId(inMessageContext.getServiceGroupContextId());
 
+
+
         // Ensure transport settings match the scheme for the To EPR
         setupCorrectTransportOut(newmsgCtx);
         return newmsgCtx;



Mime
View raw message