Package org.apache.axis2.description

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


                }
            }

            pf.getServiceGroupPM().engageModuleForServiceGroup(module, serviceGroup);
            serviceGroup.disengageModule(module);
            serviceGroup.engageModule(module);

            return true;

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


                ArrayList modules = opDesc.getModuleRefs();
                for (int i = 0; i < modules.size(); i++) {
                    QName moduleName = (QName) modules.get(i);
                    ModuleDescription module = axisConfig.getModule(moduleName);
                    if (module != null) {
                        opDesc.engageModule(module);
                    } else {
                        throw new DeploymentException(Messages.getMessage(
                                DeploymentErrorMsgs.IN_VALID_MODUELE_REF_BY_OP, opDesc.getName()
                                .getLocalPart(), moduleName.getLocalPart()));
                    }
View Full Code Here

            try {
                OperationDescription od =
                        configContext.getAxisConfiguration().getService(
                                serviceName)
                                .getOperation(new QName(operationName));
                od.engageModule(
                        configContext.getAxisConfiguration().getModule(
                                new QName(moduleName)));
                req.getSession().setAttribute(Constants.ENGAGE_STATUS,
                        moduleName +
                                " module engaged to the operation Successfully");
View Full Code Here

            try {
                OperationDescription od =
                        configContext.getAxisConfiguration().getService(
                                new QName(serviceName)).getOperation(
                                        new QName(operationName));
                od.engageModule(
                        configContext.getAxisConfiguration().getModule(new QName(moduleName)));
                req.getSession().setAttribute(
                        Constants.ENGAGE_STATUS,
                        moduleName + " module engaged to the operation Successfully");
            } catch (AxisFault axisFault) {
View Full Code Here

            try {
                OperationDescription od =
                        configContext.getAxisConfiguration().getService(
                                new QName(serviceName))
                        .getOperation(new QName(operationName));
                od.engageModule(
                        configContext.getAxisConfiguration().getModule(
                                new QName(moduleName)));
                req.getSession().setAttribute(Constants.ENGAGE_STATUS,
                        moduleName +
                        " module engaged to the operation Successfully");
View Full Code Here

                axis2MessageContext.setTo(epr);
               
                ServiceDescription sd = messageContext.getEndpointDescription().getServiceDescription();
                AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
                if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING)) {
                    axisConfig.engageModule(Constants.MODULE_ADDRESSING);
                }
            }
            catch (Exception e) {
                throw ExceptionFactory.
                    makeWebServiceException(
View Full Code Here

            String value = Utils.getParameterValue(disabled);
        if (JavaUtils.isFalseExplicitly(value)) {
          ServiceDescription sd = endpointDescription.getServiceDescription();
          AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
          if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING))
            axisConfig.engageModule(Constants.MODULE_ADDRESSING);
        }
      }
      catch (Exception e) {
            throw ExceptionFactory.makeWebServiceException(
                    Messages.getMessage("AddressingEngagementError", e.toString()));
View Full Code Here

            String value = Utils.getParameterValue(disabled);
            if (JavaUtils.isFalseExplicitly(value)) {
                ServiceDescription sd = endpointDescription.getServiceDescription();
                AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
                if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING))
                    axisConfig.engageModule(Constants.MODULE_ADDRESSING);
            }
        } catch (Exception e) {
            logger.error("Fail to configure addressing info ", e);
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("AddressingEngagementError", e.toString()));
        }
View Full Code Here

        AxisConfiguration axisConfig = configurationContext.getAxisConfiguration();
        AxisModule poxSecModule =
                axisConfig.getModule("POXSecurityModule");
        if (poxSecModule != null) {
            try {
                axisConfig.engageModule(poxSecModule);
            } catch (AxisFault e) {
                log.error("Cannot globally engage POX Security module", e);
            }
        }
    }
View Full Code Here

    protected void activate(ComponentContext ctxt) {
        try {
            ConfigurationContext mainConfigCtx = configContextService.getServerConfigContext();
            AxisConfiguration mainAxisConfig = mainConfigCtx.getAxisConfiguration();
            BundleContext bundleCtx = ctxt.getBundleContext();          
            mainAxisConfig.engageModule(POX_SECURITY_MODULE);
            bundleCtx.registerService(SecurityConfigAdmin.class.getName(),
                                      new SecurityConfigAdmin(mainAxisConfig,
                                                              registryService.getConfigSystemRegistry(),
                                                              null),
                                      null);
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.