Author: gatfora
Date: Tue Apr 17 07:02:56 2007
New Revision: 529607
URL: http://svn.apache.org/viewvc?view=rev&rev=529607
Log:
Check for AxisOperation in SandeshaModule.engageNotify as well as AxisService
when deciding if it is an out in operation for RM Auto offering
Modified:
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
Modified:
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java?view=diff&rev=529607&r1=529606&r2=529607
==============================================================================
---
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
(original)
+++
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
Tue Apr 17 07:02:56 2007
@@ -186,7 +186,24 @@
break;
}
}
- }
+ } else if(axisDescription instanceof AxisOperation) {
+ AxisOperation op = (AxisOperation)
axisDescription;
+ log.debug("Examining operation " + op.getName()
+ ", mep " + op.getAxisSpecifMEPConstant());
+
+ String name = null;
+ QName qName = op.getName();
+ if(qName != null) name = qName.getLocalPart();
+ if(name != null &&
!name.startsWith(Sandesha2Constants.SANDESHA_OP_PREFIX)) {
+
+ // If we get to here then we must have one of
the user's operations, so
+ // check the MEP.
+ if(op.getAxisSpecifMEPConstant() ==
WSDLConstants.MEP_CONSTANT_OUT_IN) {
+ Parameter p = new
Parameter(Sandesha2Constants.SERVICE_CONTAINS_OUT_IN_MEPS, Boolean.TRUE);
+ op.getParent().addParameter(p);
+ }
+ }
+ }
+
if(log.isDebugEnabled()) log.debug("Exit:
SandeshaModule::engageNotify");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]