Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisOperation


      StorageManager storageManager) throws AxisFault {
    MessageContext referenceMessage = referenceRMMessage.getMessageContext();
    if (referenceMessage == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.msgContextNotSet));

    AxisOperation terminateOperation = SpecSpecificConstants.getWSRMOperation(
        Sandesha2Constants.MessageTypes.TERMINATE_SEQ,
        rmsBean.getRMVersion(),
        referenceMessage.getAxisService());

    ConfigurationContext configCtx = referenceMessage.getConfigurationContext();
View Full Code Here


   
    MessageContext referenceMessage = referenceRMMessage.getMessageContext();
    String rmNamespaceValue = referenceRMMessage.getRMNamespaceValue();
    String rmVersion = referenceRMMessage.getRMSpecVersion();
   
    AxisOperation makeConnectionOperation = SpecSpecificConstants.getWSRMOperation(
        Sandesha2Constants.MessageTypes.MAKE_CONNECTION_MSG,
        rmVersion,
        referenceMessage.getAxisService());

    MessageContext makeConnectionMessageCtx = SandeshaUtil.createNewRelatedMessageContext(referenceRMMessage,makeConnectionOperation);
View Full Code Here

    String acksToStr = acksTo.getAddress();

    if (acksToStr == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.acksToStrNotSet));

    AxisOperation ackOperation = SpecSpecificConstants.getWSRMOperation(
        Sandesha2Constants.MessageTypes.ACK,
        rmdBean.getRMVersion(),
        msgContext.getAxisService());
    MessageContext ackMsgCtx = SandeshaUtil.createNewRelatedMessageContext(rmMsgCtx, ackOperation);
View Full Code Here

    if (log.isDebugEnabled())
      log.debug("Enter: AckRequestedProcessor::processOutgoingAckRequestMessage");

    setupOutMessage(ackRequestRMMsg);

    AxisOperation ackOperation = SpecSpecificConstants.getWSRMOperation(
        Sandesha2Constants.MessageTypes.ACK,
        getRMVersion(),
        getMsgContext().getAxisService());
    getMsgContext().setAxisOperation(ackOperation);
View Full Code Here

    EndpointReference acksTo = new EndpointReference(rmdBean.getAcksToEPR());

    if (acksTo.getAddress() == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.acksToStrNotSet));

    AxisOperation ackOperation = SpecSpecificConstants.getWSRMOperation(
        Sandesha2Constants.MessageTypes.ACK,
        rmdBean.getRMVersion(),
        referenceMsg.getAxisService());

    MessageContext ackMsgCtx = SandeshaUtil.createNewRelatedMessageContext(referenceRMMessage, ackOperation);
View Full Code Here

   
    // 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 = ContextFactory.createOperationContext(op, ackRMMsgContext.getMessageContext().getServiceContext());
      ackRMMsgContext.getMessageContext().setOperationContext(opCtx);
    }
View Full Code Here

    }
    setTransportProperties (returnMessage, pollMessage);
   
    // Link the response to the request

    AxisOperation operation = SpecSpecificConstants.getWSRMOperation(Sandesha2Constants.MessageTypes.POLL_RESPONSE_MESSAGE, pollMessage.getRMSpecVersion(), pollMessage.getMessageContext().getAxisService());
    OperationContext context = new OperationContext (operation, pollMessage.getMessageContext().getServiceContext());
   
    if(context == null) {
      AxisOperation oldOperation = returnMessage.getAxisOperation();

      context = ContextFactory.createOperationContext(oldOperation, returnMessage.getServiceContext()); //new OperationContext(oldOperation);

      context.addMessageContext(pollMessage.getMessageContext());
      pollMessage.getMessageContext().setOperationContext(context);
View Full Code Here

    // This table needs to be kept in sync with the operations defined in the
    // sandesha module.xml. The module.xml defintions are used to identify
    // messages as they come into the server, and this table us used to pick
    // the correct operation as we make invocations. Because of this, the
    // tables are opposites of one another.
    AxisOperation result = null;
    if(rmSpecLevel.equals(Sandesha2Constants.SPEC_VERSIONS.v1_0)) {
      switch(messageType) {
      case Sandesha2Constants.MessageTypes.CREATE_SEQ:
        result = service.getOperation(Sandesha2Constants.RM_OUT_IN_OPERATION);
        break;
View Full Code Here

              String storageKey = retransmitterBean.getMessageContextRefKey();
             
              boolean syncResponseNeeded = false;
              if (Sandesha2Constants.SPEC_VERSIONS.v1_0.equals(rmVersion) && anonReplyTo) {
                MessageContext applicationMessage = storageManager.retrieveMessageContext(storageKey, configCtx);
                AxisOperation operation = applicationMessage.getAxisOperation();
                if(operation!= null) {
                  int mep = operation.getAxisSpecifMEPConstant();
                  syncResponseNeeded = (mep == WSDLConstants.MEP_CONSTANT_OUT_IN);
                }
              }

              if (!syncResponseNeeded) {
View Full Code Here

    public void overrideConfigurationContext (ConfigurationContext context,MessageReceiver messageReceiver, String operationName, boolean newOperation, int mep) throws Exception  {
     
     
      AxisService rmService = context.getAxisConfiguration().getService(RMServiceName);
     
      AxisOperation operation = null;
     
      if (newOperation) {
        operation = rmService.getOperation(new QName (operationName));
        if (operation==null)
          throw new Exception ("Given operation not found");
      } else {
        operation = AxisOperationFactory.getAxisOperation(mep);
        rmService.addOperation(operation);
      }
     
      operation.setMessageReceiver(messageReceiver);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.AxisOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.