Examples of engageModule()


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

                    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

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

                        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

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

                        .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

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

    public void onEngage(AxisModule module, AxisDescription engager) throws AxisFault {
        Iterator<AxisServiceGroup> servicegroups = getServiceGroups();
        while (servicegroups.hasNext()) {
            AxisServiceGroup serviceGroup = servicegroups.next();
            serviceGroup.engageModule(module, engager);
        }
    }

    /**
     * To dis-engage a module from the system. This will remove all the handlers
View Full Code Here

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

                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

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

        ModuleDescription m1 = new ModuleDescription(
                new QName("", "A Mdoule 1"));
        m1.setInFlow(new MockFlow("service module inflow", 4));
        //m1.setFaultInFlow(new MockFlow("service module faultflow", 1));
        engineRegistry = new AxisConfigurationImpl();
        service.engageModule(m1,engineRegistry);

        OperationDescription operation = new OperationDescription(
                operationName);
        service.addOperation(operation);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.engageModule()

                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

Examples of org.apache.axis2.engine.AxisConfiguration.engageModule()

            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

Examples of org.apache.axis2.engine.AxisConfiguration.engageModule()

            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

Examples of org.apache.axis2.oasis.ping.PingPortStub.engageModule()

        //Enable MTOM to those scenarios where they are configured using:
        //<optimizeParts>xpathExpression</optimizeParts>
        stub._getClientOptions().setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
       
        //Engage the security module
        stub.engageModule("security");
       
        if(outflowConfig !=null){
          stub._getClientOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, outflowConfig.getProperty());
        }
        if(inflowConfig != 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.