Examples of InOutAxisOperation


Examples of org.apache.axis2.description.InOutAxisOperation

     * @throws AxisFault         axis fault
     */
    private void addOperations(AxisService eventSourceService) throws AxisFault {
        // Create operations
        AxisOperation mediateOperation =
                new InOutAxisOperation(SynapseConstants.SYNAPSE_OPERATION_NAME);
        AxisOperation subscribeOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_SUBSCRIBE_OP));
        AxisOperation unsubscribeOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_UNSUBSCRIBE_OP));
        AxisOperation renewOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_RENEW_OP));
        AxisOperation getStatusOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_GET_STATUS_OP));
        AxisOperation subscriptionEndOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_SUBSCRIPTIONEND_OP));
        // Assign the message reciver
        mediateOperation.setMessageReceiver(this);
        subscribeOperation.setMessageReceiver(this);
        unsubscribeOperation.setMessageReceiver(this);
        renewOperation.setMessageReceiver(this);
        getStatusOperation.setMessageReceiver(this);
        subscriptionEndOperation.setMessageReceiver(this);       
        // Set Soap Action
        subscribeOperation.setSoapAction(EventingConstants.WSE_SUBSCRIBE);
        unsubscribeOperation.setSoapAction(EventingConstants.WSE_UNSUBSCRIBE);
        renewOperation.setSoapAction(EventingConstants.WSE_RENEW);
        getStatusOperation.setSoapAction(EventingConstants.WSE_GET_STATUS);
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

        org.apache.axis2.context.MessageContext axis2MC
                = new org.apache.axis2.context.MessageContext();
        axis2MC.setConfigurationContext(this.configContext);

        ServiceContext svcCtx = new ServiceContext();
        OperationContext opCtx = new OperationContext(new InOutAxisOperation(), svcCtx);
        axis2MC.setServiceContext(svcCtx);
        axis2MC.setOperationContext(opCtx);
        MessageContext mc = new Axis2MessageContext(axis2MC, synapseConfig, this);
        mc.setMessageID(UIDGenerator.generateURNString());
        try {
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

        if (as == null) {
            synchronized (RMMediator.class) {
                AxisService emptyRMEngagedService =
                        new AxisService(EMPTY_RM_ENGAGED_SERVICE);
                AxisOperation emptyOperation =
                        new InOutAxisOperation(EMPTY_OPERATION);
                emptyOperation.setMessageReceiver(new EmptyRMMessageReceiver());
                emptyRMEngagedService.addOperation(emptyOperation);
                ac.addService(emptyRMEngagedService);

                as = emptyRMEngagedService;
                AxisModule am = ac
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

        if (as == null) {
            synchronized (RMMediator.class) {
                AxisService emptyRMEngagedService =
                        new AxisService(EMPTY_RM_ENGAGED_SERVICE);
                AxisOperation emptyOperation =
                        new InOutAxisOperation(EMPTY_OPERATION);
                emptyOperation.setMessageReceiver(new EmptyRMMessageReceiver());
                emptyRMEngagedService.addOperation(emptyOperation);
                ac.addService(emptyRMEngagedService);

                as = emptyRMEngagedService;
                AxisModule am = ac
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

        org.apache.axis2.context.MessageContext axis2MC
                = new org.apache.axis2.context.MessageContext();
        axis2MC.setConfigurationContext(this.configContext);

        ServiceContext svcCtx = new ServiceContext();
        OperationContext opCtx = new OperationContext(new InOutAxisOperation(), svcCtx);
        axis2MC.setServiceContext(svcCtx);
        axis2MC.setOperationContext(opCtx);
        MessageContext mc = new Axis2MessageContext(axis2MC, synapseConfig, this);
        mc.setMessageID(UUIDGenerator.getUUID());
        try {
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

        org.apache.axis2.context.MessageContext axis2MC
                = new org.apache.axis2.context.MessageContext();
        axis2MC.setConfigurationContext(this.configContext);

        ServiceContext svcCtx = new ServiceContext();
        OperationContext opCtx = new OperationContext(new InOutAxisOperation(), svcCtx);
        axis2MC.setServiceContext(svcCtx);
        axis2MC.setOperationContext(opCtx);
        MessageContext mc = new Axis2MessageContext(axis2MC, synapseConfig, this);
        mc.setMessageID(UIDGenerator.generateURNString());
        try {
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

     * @throws AxisFault         axis fault
     */
    private void addOperations(AxisService eventSourceService) throws AxisFault {
        // Create operations
        AxisOperation mediateOperation =
                new InOutAxisOperation(SynapseConstants.SYNAPSE_OPERATION_NAME);
        AxisOperation subscribeOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_SUBSCRIBE_OP));
        AxisOperation unsubscribeOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_UNSUBSCRIBE_OP));
        AxisOperation renewOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_RENEW_OP));
        AxisOperation getStatusOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_GET_STATUS_OP));
        AxisOperation subscriptionEndOperation =
                new InOutAxisOperation(new QName(EventingConstants.WSE_SUBSCRIPTIONEND_OP));
        // Assign the message reciver
        mediateOperation.setMessageReceiver(this);
        subscribeOperation.setMessageReceiver(this);
        unsubscribeOperation.setMessageReceiver(this);
        renewOperation.setMessageReceiver(this);
        getStatusOperation.setMessageReceiver(this);
        subscriptionEndOperation.setMessageReceiver(this);       
        // Set Soap Action
        subscribeOperation.setSoapAction(EventingConstants.WSE_SUBSCRIBE);
        unsubscribeOperation.setSoapAction(EventingConstants.WSE_UNSUBSCRIBE);
        renewOperation.setSoapAction(EventingConstants.WSE_RENEW);
        getStatusOperation.setSoapAction(EventingConstants.WSE_GET_STATUS);
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

  }
 
 
  public static void createOperation(AxisService axisService, String name, MessageReceiver messageReceiver,
      String inputAction, String outputAction){
    InOutAxisOperation operation1 = new InOutAxisOperation(new QName(name));
    operation1.setMessageReceiver(messageReceiver);
    operation1.setOutputAction(outputAction);
    axisService.addOperation(operation1);
    if(inputAction != null){
      axisService.mapActionToOperation(inputAction, operation1)
    }
  }
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation

        } catch (Exception ignored) {

        }

        msgCtx.setAxisService(new AxisService(SERVICE));
        msgCtx.setAxisOperation(new InOutAxisOperation(new QName(OPERATION)));
        return synCtx;
    }
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation


    private void deployMultitenantService(AxisConfiguration axisCfg) throws AxisFault {
        AxisService service = new AxisService(MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
        AxisOperation operation =
                new InOutAxisOperation(MultitenantConstants.MULTITENANT_DISPATCHER_OPERATION);
        operation.setMessageReceiver(new MultitenantMessageReceiver());
        service.addOperation(operation);
        AxisServiceGroup multitenantSvcGroup = new AxisServiceGroup(axisCfg);
        multitenantSvcGroup.setServiceGroupName(MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
        multitenantSvcGroup.addParameter(CarbonConstants.HIDDEN_SERVICE_PARAM_NAME, "true");
        multitenantSvcGroup.addService(service);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.