Package org.apache.axis2.description

Examples of org.apache.axis2.description.ModuleDescription


     }

     public void testOveride_locked_Para_Module(){
        try {
            assertNotNull(ar);
            ModuleDescription module = new ModuleDescription();
            module.setParent(ar);
            InputStream in = new FileInputStream(repo + "/module_overide_locked_para.xml");
            ModuleBuilder mbuilder = new ModuleBuilder(in,module,ar);
            mbuilder.populateModule();
            fail("Parmter is locked can not overide" ) ;
        }catch (FileNotFoundException e) {
View Full Code Here


        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ac =
                builder.buildConfigurationContext(filename)
                .getAxisConfiguration();
        ModuleDescription module = ac.getModule(new QName("module1"));
        assertNotNull(module);
        ac.engageModule(new QName("module1"));
        AxisService service = ac.getService("service2");
        assertNotNull(service);
        AxisOperation moduleOperation = service.getOperation(
View Full Code Here

            HashMap modules =
                    ((AxisConfiguration) context.getAxisConfiguration())
                            .getModules();
            Collection col = modules.values();
            for (Iterator iterator = col.iterator(); iterator.hasNext();) {
                ModuleDescription axismodule =
                        (ModuleDescription) iterator.next();
                Module module = axismodule.getModule();
                if (module != null) {
                    module.init(context.getAxisConfiguration());
                }
            }
        } catch (AxisFault e) {
View Full Code Here

    public void testExtractAddressingInformationFromHeaders() throws AxisFault {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            AxisConfiguration er = builder.buildConfigurationContext("target").getAxisConfiguration();
            File file = new File("target/addressing.mar");
            assertTrue(file.exists());
            ModuleDescription moduleDesc = er.getModule(new QName("addressing"));
            assertNotNull(moduleDesc);
    }
View Full Code Here

    public static ServiceContext createAdressedEnabledClientSide(ServiceDescription service)
        throws AxisFault {
        DeploymentEngine deploymentEngine = new DeploymentEngine();
        File file = new File(org.apache.axis2.Constants.TESTING_REPOSITORY + "/modules/addressing.mar");
        TestCase.assertTrue(file.exists());
        ModuleDescription moduleDesc = deploymentEngine.buildModule(file);

        ConfigurationContextFactory efac = new ConfigurationContextFactory();
        ConfigurationContext sysContext = efac.buildClientConfigurationContext(null);
       
        sysContext.getAxisConfiguration().addMdoule(moduleDesc);
View Full Code Here

            HashMap modules =
                ((AxisConfigurationImpl) context.getAxisConfiguration())
                    .getModules();
            Collection col = modules.values();
            for (Iterator iterator = col.iterator(); iterator.hasNext();) {
                ModuleDescription axismodule =
                    (ModuleDescription) iterator.next();
                Module module = axismodule.getModule();
                if (module != null) {
                    module.init(context.getAxisConfiguration());
                }
            }
        } catch (AxisFault e) {
View Full Code Here

            PhaseResolver reolve =
                new PhaseResolver(configurationContextVal, service);
            reolve.buildchains();
            for (int i = 0; i < modules.size(); i++) {
                QName qName = (QName) modules.get(i);
                ModuleDescription moduledecs =
                    configurationContextVal.getModule(qName);
                reolve.engageModuleToService(service, moduledecs);
            }
        } catch (PhaseException e) {
            throw new PhaseException(e.getMessage());
View Full Code Here

       
        service.setInFlow(new MockFlow("service inflow", 4));
        service.setOutFlow(new MockFlow("service outflow", 5));
        //service.setFaultInFlow(new MockFlow("service faultflow", 1));

        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));
        service.engageModule(m1);

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

    public void testModuleEngageMent() throws PhaseException, DeploymentException, AxisFault, XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ac = builder.buildConfigurationContext(filename).getAxisConfiguration();
        ModuleDescription module = ac.getModule(new QName("module1"));
        assertNotNull(module);
        ac.engageModule(new QName("module1"));
        ServiceDescription service = ac.getService(new QName("service2"));
        assertNotNull(service);
        OperationDescription moduleOperation = service.getOperation(new QName("creatSeq"));
View Full Code Here

        service.setInFlow(new MockFlow("service inflow", 4));
        service.setOutFlow(new MockFlow("service outflow", 5));
        //service.setFaultInFlow(new MockFlow("service faultflow", 1));

        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(
View Full Code Here

TOP

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

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.