/** * Returns the web service operation style(in only/in-out). * // TODO: Move to a separate class * * @param op Interested Axis Operation * @return true if the operation is in-out, false otherwise. */ public static boolean hasResponse(final AxisOperation op) { switch (op.getAxisSpecificMEPConstant()) { case WSDLConstants.MEP_CONSTANT_IN_OUT: return true; case WSDLConstants.MEP_CONSTANT_OUT_ONLY: return true; case WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN: return true; case WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY: return true; default: return false; } }
if(op.getAxisSpecificMEPConstant() == WSDLConstants.MEP_CONSTANT_OUT_IN) { Parameter p = new Parameter(Sandesha2Constants.SERVICE_CONTAINS_OUT_IN_MEPS, Boolean.TRUE); service.addParameter(p); if (log.isDebugEnabled()) log.debug("Examining operation " + op.getName() + ", mep " + op.getAxisSpecificMEPConstant()); if(op.getAxisSpecificMEPConstant() == WSDLConstants.MEP_CONSTANT_OUT_IN) { Parameter p = new Parameter(Sandesha2Constants.SERVICE_CONTAINS_OUT_IN_MEPS, Boolean.TRUE); op.getParent().addParameter(p);
/** * Checks if the MEP of the JBI message exchange and the Axis Operation are * the same. * * @param exchange * the exchange * @param axisService * the Axis service * @return true if the MEP are identical, false otherwise */ protected boolean checkMEP(Exchange exchange, AxisService axisService) { AxisOperation operation = axisService.getOperation(exchange.getOperation()); Logger logger = getLogger(); if (logger.isLoggable(Level.FINE)) { logger.fine(this.logHint + ": MEP for Axis Operation is " + operation.getMessageExchangePattern() + "."); logger.fine(this.logHint + ": MEP for JBI message is " + exchange.getPattern() + "."); } int mepConstant = operation.getAxisSpecificMEPConstant(); return (exchange.isInOnlyPattern() && mepConstant == WSDLConstants.MEP_CONSTANT_IN_ONLY) || (exchange.isInOptionalOutPattern() && mepConstant == WSDLConstants.MEP_CONSTANT_IN_OPTIONAL_OUT) || (exchange.isInOutPattern() && mepConstant == WSDLConstants.MEP_CONSTANT_IN_OUT) || (exchange.isRobustInOnlyPattern() && mepConstant == WSDLConstants.MEP_CONSTANT_ROBUST_IN_ONLY); }
public static void sendAckNow(RMMsgContext ackRMMsgContext) throws AxisFault { if (LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug("Enter: AcknowledgementManager::sendAckNow"); // Write the acks into the envelope ackRMMsgContext.addSOAPEnvelope(); MessageContext ackMsgContext = ackRMMsgContext.getMessageContext(); // setting CONTEXT_WRITTEN since acksto is anonymous if (ackRMMsgContext.getMessageContext().getOperationContext() == null) { // operation context will be null when doing in a GLOBAL // handler. AxisOperation op = ackMsgContext.getAxisOperation(); OperationContext opCtx = OperationContextFactory.createOperationContext(op.getAxisSpecificMEPConstant(), op, ackRMMsgContext.getMessageContext() .getServiceContext()); ackRMMsgContext.getMessageContext().setOperationContext(opCtx); } ackRMMsgContext.getMessageContext().setServerSide(true); AxisEngine.send(ackMsgContext); if (LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug("Exit: AcknowledgementManager::sendAckNow"); } }
final int axisMep = axisOperation.getAxisSpecificMEPConstant(); final MEPPatternConstants mep; if (axisMep == org.apache.axis2.wsdl.WSDLConstants.MEP_CONSTANT_IN_OUT) {
AxisOperation operation = applicationMessage.getAxisOperation(); if(operation!= null) { int mep = operation.getAxisSpecificMEPConstant(); syncResponseNeeded = (mep == WSDLConstants.MEP_CONSTANT_OUT_IN);
int mep = axisOperation.getAxisSpecificMEPConstant(); if(mep == WSDLConstants.MEP_CONSTANT_OUT_ONLY){ client.fireAndForget(msgCtx.getEnvelope().getBody().cloneOMElement().getFirstElement());
int mep = WSDLConstants.MEP_CONSTANT_IN_ONLY; AxisOperation userOp = ctx.getAxisOperation(); if(userOp != null) mep = userOp.getAxisSpecificMEPConstant(); boolean inOut = false;
OperationContext opcontext = OperationContextFactory.createOperationContext(ackOperation.getAxisSpecificMEPConstant(), ackOperation, serviceCtx); opcontext.setParent(getMsgContext().getServiceContext());
responseMsgOpCtx = OperationContextFactory.createOperationContext (op.getAxisSpecificMEPConstant(), op, serviceCtx);
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;
getMsgContext().getAxisService()); OperationContext opcontext = OperationContextFactory.createOperationContext(terminateOp.getAxisSpecificMEPConstant(), terminateOp, getMsgContext().getServiceContext()); opcontext.setParent(getMsgContext().getServiceContext());
OperationContext opCtx = OperationContextFactory.createOperationContext(ackOperation.getAxisSpecificMEPConstant(), ackOperation, serviceCtx);
int mep = WSDLConstants.MEP_CONSTANT_INVALID; if(op != null) { mep = op.getAxisSpecificMEPConstant(); int mep = WSDLConstants.MEP_CONSTANT_INVALID; if(op != null) { mep = op.getAxisSpecificMEPConstant();
OperationContext opcontext = OperationContextFactory.createOperationContext(closeOperation.getAxisSpecificMEPConstant(), closeOperation, getMsgContext().getServiceContext()); opcontext.setParent(getMsgContext().getServiceContext());
int msgExchangePattern = rmMsgCtx.getMessageContext().getAxisOperation().getAxisSpecificMEPConstant(); if (log.isDebugEnabled()) log.debug("SequenceProcessor:: mep= " + msgExchangePattern); int mep = msgCtx.getAxisOperation().getAxisSpecificMEPConstant(); if(specVersion!=null && specVersion.equals(Sandesha2Constants.SPEC_VERSIONS.v1_0) && mep == WSDLConstants.MEP_CONSTANT_OUT_IN) {
OperationContext operationContext = OperationContextFactory.createOperationContext(operation.getAxisSpecificMEPConstant(), operation, newMessageContext.getServiceContext()); newMessageContext.setOperationContext(operationContext); operationContext.addMessageContext(newMessageContext);