You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ch...@apache.org on 2006/11/24 05:15:58 UTC

svn commit: r478762 - /webservices/sandesha/branches/sandesha2/java/1_1/src/org/apache/sandesha2/util/RMMsgCreator.java

Author: chamikara
Date: Thu Nov 23 20:15:57 2006
New Revision: 478762

URL: http://svn.apache.org/viewvc?view=rev&rev=478762
Log:
RMMsgCreator should get the AxisOperation from the AxisService of the referenced message.

Modified:
    webservices/sandesha/branches/sandesha2/java/1_1/src/org/apache/sandesha2/util/RMMsgCreator.java

Modified: webservices/sandesha/branches/sandesha2/java/1_1/src/org/apache/sandesha2/util/RMMsgCreator.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/src/org/apache/sandesha2/util/RMMsgCreator.java?view=diff&rev=478762&r1=478761&r2=478762
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/src/org/apache/sandesha2/util/RMMsgCreator.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/src/org/apache/sandesha2/util/RMMsgCreator.java Thu Nov 23 20:15:57 2006
@@ -218,7 +218,11 @@
 		try {
 			// creating by copying common contents. (this will not set contexts
 			// except for configCtx).
-			AxisOperation createSequenceOperation = AxisOperationFactory
+			AxisOperation createSequenceOperation = applicationMsgContext.getAxisService()
+						.getOperation(new QName (Sandesha2Constants.RM_IN_OUT_OPERATION_NAME)); 
+				
+			if (createSequenceOperation==null)	
+				createSequenceOperation = AxisOperationFactory
 					.getAxisOperation(WSDL20_2004Constants.MEP_CONSTANT_OUT_IN);
 
 			createSeqmsgContext = SandeshaUtil
@@ -381,10 +385,11 @@
 		if (referenceMessage == null)
 			throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.msgContextNotSet));
 
-		AxisOperation terminateOperation = null;
+		AxisOperation terminateOperation = referenceMessage.getAxisService().getOperation(new QName (Sandesha2Constants.RM_IN_OUT_OPERATION_NAME));
 
 		try {
-			terminateOperation = AxisOperationFactory.getAxisOperation(WSDL20_2004Constants.MEP_CONSTANT_OUT_ONLY);
+			if (terminateOperation==null)
+				terminateOperation = AxisOperationFactory.getAxisOperation(WSDL20_2004Constants.MEP_CONSTANT_OUT_ONLY);
 		} catch (AxisFault e1) {
 			throw new SandeshaException(e1.getMessage());
 		}
@@ -713,7 +718,10 @@
 		String rmNamespaceValue = referenceRMMessage.getRMNamespaceValue();
 		String rmVersion = referenceRMMessage.getRMSpecVersion();
 		
-		AxisOperation makeConnectionOperation = AxisOperationFactory.getAxisOperation(
+		AxisOperation makeConnectionOperation = referenceMessage.
+						getAxisService().getOperation(new QName (Sandesha2Constants.RM_IN_OUT_OPERATION_NAME)); 
+			
+		makeConnectionOperation = AxisOperationFactory.getAxisOperation(
 				WSDL20_2004Constants.MEP_CONSTANT_OUT_IN);
 		
 		MessageContext makeConnectionMessageCtx = SandeshaUtil.createNewRelatedMessageContext(referenceRMMessage,makeConnectionOperation);



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