svn commit: r681069 - /webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java

[email protected]
Newsgroups gmane.comp.apache.webservices.fx.devel
Message-ID <[email protected]>
Author: mckierna
Date: Wed Jul 30 07:41:37 2008
New Revision: 681069

URL: http://svn.apache.org/viewvc?rev=681069&view=rev
Log:
See https://issues.apache.org/jira/browse/SANDESHA2-170 thanks Dave

Modified:
    webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java

Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java?rev=681069&r1=681068&r2=681069&view=diff
==============================================================================
--- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java (original)
+++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java Wed Jul 30 07:41:37 2008
@@ -153,6 +153,12 @@
 		boolean autoOffer = false;
 		if(Sandesha2Constants.SPEC_2005_02.NS_URI.equals(rmNamespaceValue)) {
 			autoOffer = twoWayService;
+                        //There may not have been a way to confirm if an OUT_IN MEP is being used.
+			//Therefore doing an extra check to see what Axis is using.  If it's OUT_IN then we must offer.
+			if(applicationMsgContext.getOperationContext().getAxisOperation().getAxisSpecificMEPConstant() == org.apache.axis2.wsdl.WSDLConstants.MEP_CONSTANT_OUT_IN
+			     || applicationMsgContext.getOperationContext().getAxisOperation().getAxisSpecificMEPConstant() == org.apache.axis2.wsdl.WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN){
+				autoOffer = true;
+			}
 		} else {
 			// We also do some checking at this point to see if MakeConection is required to
 			// enable WS-RM 1.1, and write a warning to the log if it has been disabled.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.