Author: mckierna Date: Wed Oct 3 02:53:43 2007 New Revision: 581548 URL: http://svn.apache.org/viewvc?rev=581548&view=rev Log: Ensure checkSyncResponses copies properties correctly Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/SandeshaUtil.java webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/SandeshaUtil.java URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/SandeshaUtil.java?rev=581548&r1=581547&r2=581548&view=diff ============================================================================== --- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/SandeshaUtil.java (original) +++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/SandeshaUtil.java Wed Oct 3 02:53:43 2007 @@ -453,7 +453,7 @@ } - private static void copyConfiguredProperties (MessageContext fromMessage, MessageContext toMessage) throws AxisFault { + public static void copyConfiguredProperties (MessageContext fromMessage, MessageContext toMessage) throws AxisFault { // copying properties as configured in the module.xml properties. Module xml has several //properties which gives comma seperated lists of property names that have to be copited Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java?rev=581548&r1=581547&r2=581548&view=diff ============================================================================== --- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java (original) +++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java Wed Oct 3 02:53:43 2007 @@ -542,6 +542,14 @@ responseMessageContext = new MessageContext(); OperationContext requestMsgOpCtx = msgCtx.getOperationContext(); + //copy any necessary properties + SandeshaUtil.copyConfiguredProperties(msgCtx, responseMessageContext); + // If the request operation context is Out-In then it's reasonable to assume + // that the response is related to the request. + int mep = requestMsgOpCtx.getAxisOperation().getAxisSpecificMEPConstant(); + if(mep == WSDLConstants.MEP_CONSTANT_OUT_IN) { + responseMessageContext.setOperationContext(requestMsgOpCtx); + } responseMessageContext.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING, requestMsgOpCtx .getProperty(Constants.Configuration.CHARACTER_SET_ENCODING)); responseMessageContext.setProperty(Constants.Configuration.CONTENT_TYPE, requestMsgOpCtx --------------------------------------------------------------------- To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org For additional commands, e-mail: sandesha-dev-help@ws.apache.org