Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisMessage.engageModule()


        AxisModule module = axisConfig.getModule("TestModule");
        assertNotNull(module);
        AxisOperation axisOperation = service.getOperation(new QName("testVoid"));
        assertNotNull(axisOperation);
        AxisMessage message = axisOperation.getMessage("In");
        message.engageModule(module);
        assertNotNull(message);
        List list = message.getMessageFlow();
        boolean found = false;
        for (int i = 0; i < list.size(); i++) {
            Phase phase = (Phase) list.get(i);
View Full Code Here


         AxisModule module = axisConfig.getModule("TestModule");
         assertNotNull(module);
         AxisOperation axisOperation = service.getOperation(new QName("testString"));
         assertNotNull(axisOperation);
         AxisMessage message = axisOperation.getMessage("In");
         message.engageModule(module);
         assertNotNull(message);
         message = axisOperation.getMessage("Out");
         List list = message.getMessageFlow();
         boolean found = false;
         for (int i = 0; i < list.size(); i++) {
View Full Code Here

                    throw new ModuleMgtException(ModuleMgtException.WARNING, ModuleMgtMessageKeys.RAHAS_RAMPART_NOT_FOUND);
                }
                if (!operation.isEngaged(rampartModule)) {
                    pf.getOperationPM().engageModuleForOperation(rampartModule, operation);
                    operation.disengageModule(rampartModule);
                    operation.engageModule(rampartModule);
                }
            }

            pf.getOperationPM().engageModuleForOperation(module, operation);
            operation.disengageModule(module);
View Full Code Here

                }
            }

            pf.getOperationPM().engageModuleForOperation(module, operation);
            operation.disengageModule(module);
            operation.engageModule(module);

        } catch (Exception e) {
            String msg = "Error occured while engaging the module " + moduleId + " to "
                    + operationName;
            log.error(msg, e);
View Full Code Here

                        .getModule(Constants.SANDESHA2_MODULE_NAME);

                if (am == null) {
                    throw new AxisFault("Sandesha 2 Module couldn't Find");
                }
                emptyRMEngagedService.engageModule(am, ac);
            }
        }


        AxisOperation ao = as.getOperation(EMPTY_OPERATION);
View Full Code Here

                    }

                    service = createAnonymousService(axisCfg, servicekey);

                    if (wsAddrOn) {
                        service.engageModule(axisCfg.getModule(
                            Constants.ADDRESSING_MODULE_NAME), axisCfg);

                        if (wsRMOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.SANDESHA2_MODULE_NAME), axisCfg);
View Full Code Here

                    if (wsAddrOn) {
                        service.engageModule(axisCfg.getModule(
                            Constants.ADDRESSING_MODULE_NAME), axisCfg);

                        if (wsRMOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.SANDESHA2_MODULE_NAME), axisCfg);
                        }
                        if (wsSecOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.RAMPART_MODULE_NAME), axisCfg);
View Full Code Here

                        if (wsRMOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.SANDESHA2_MODULE_NAME), axisCfg);
                        }
                        if (wsSecOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.RAMPART_MODULE_NAME), axisCfg);
                        }
                    }
                    // if WS-A is off, WS-Sec and WS-RM should be too
                }
View Full Code Here

                        .getModule(Constants.SANDESHA2_MODULE_NAME);

                if (am == null) {
                    throw new AxisFault("Sandesha 2 Module couldn't Find");
                }
                emptyRMEngagedService.engageModule(am, ac);
            }
        }


        AxisOperation ao = as.getOperation(EMPTY_OPERATION);
View Full Code Here

    private OperationClient getOperationClient(boolean isTwoWay, MessageContext msgCtx)
            throws AxisFault {
        AxisService anonymousService = AnonymousServiceFactory.getAnonymousService(serviceName,
                portName,
                axisConfig);
        anonymousService.engageModule(axisConfig.getModule("UEPModule"));
        anonymousService.getParent().addParameter(
                BPELConstants.HIDDEN_SERVICE_PARAM, "true");
        ServiceGroupContext sgc = new ServiceGroupContext(
                clientConfigCtx, (AxisServiceGroup) anonymousService.getParent());
        ServiceContext serviceCtx = sgc.getServiceContext(anonymousService);
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.