Package org.apache.axis2.engine

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


    protected MessageContext getMsgCtx() throws Exception {
        MessageContext ctx = new MessageContext();
       
        AxisConfiguration axisConfiguration = new AxisConfiguration();
        AxisService axisService = new AxisService("TestService");
        axisConfiguration.addService(axisService);
        AxisServiceGroup axisServiceGroup = new AxisServiceGroup();
        axisConfiguration.addServiceGroup(axisServiceGroup);
        ctx.setConfigurationContext(new ConfigurationContext(axisConfiguration));
        axisServiceGroup.addService(axisService);
        ServiceGroupContext gCtx = ctx.getConfigurationContext().createServiceGroupContext(axisServiceGroup);
View Full Code Here


                new OutInAxisOperation(new QName(
                    "__OPERATION_OUT_IN__"));
            AxisService axisAnonymousService =
                new AxisService("__ANONYMOUS_SERVICE__");
            axisAnonymousService.addOperation(outInOperation);
            ac.addService(axisAnonymousService);
            phasesInfo.setOperationPhases(outInOperation);
        }
        ServiceGroupContext sgc = new ServiceGroupContext(cc,
            (AxisServiceGroup) ac.getService("__ANONYMOUS_SERVICE__").getParent());
        ServiceContext sc =
View Full Code Here

        AxisModule axisModule = DeploymentEngine.buildModule(file,
                                                             configContext.getAxisConfiguration());

        AxisConfiguration axisConfiguration = configContext.getAxisConfiguration();
        axisConfiguration.addModule(axisModule);
        axisConfiguration.addService(service);
        ServiceGroupContext serviceGroupContext =
                configContext.createServiceGroupContext((AxisServiceGroup) service.getParent());
        return serviceGroupContext.getServiceContext(service);
    }
View Full Code Here

        AxisConfiguration axisConfiguration = configContext.getAxisConfiguration();

        AxisModule axisModule = DeploymentEngine.buildModule(file,axisConfiguration);
        axisConfiguration.addModule(axisModule);

        axisConfiguration.addService(service);
        ServiceGroupContext serviceGroupContext =
                configContext.createServiceGroupContext((AxisServiceGroup) service.getParent());
        return serviceGroupContext.getServiceContext(service);
    }
View Full Code Here

        AxisService as1 = new AxisService("Service1");
        ConfigurationContext cc = null;
        try {
            cc = ConfigurationContextFactory.createEmptyConfigurationContext();
            AxisConfiguration ac = cc.getAxisConfiguration();
            ac.addService(as1);
            messageContext = cc.createMessageContext();
            messageContext.setAxisService(as1);

            SOAPEnvelope se = soapFactory.createSOAPEnvelope();
View Full Code Here

        axisService.setEndpointName("StockServiceHttpEndpoint");
        axisService.setBindingName("StockServiceHttpBinding");
        axisService.setEndpointURL("http://127.0.0.1:" + (UtilServer.TESTING_PORT) +
                                   "/axis2/services/StockService.StockServiceHttpEndpoint/");
        assertNotNull(axisService.getEndpoint("StockServiceHttpEndpoint"));
        axisConfig.addService(axisService);
        assertEquals("StockService", axisService.getName());

    }

    public void testRESTMethods() throws AxisFault {
View Full Code Here

        synapseService.addOperation(mediateOperation);
        List transports = new ArrayList();
        transports.add(org.apache.axis2.Constants.TRANSPORT_HTTP);
        transports.add("https");
        synapseService.setExposedTransports(transports);
        axisCfg.addService(synapseService);

        log.info("Initializing Sandesha 2...");
        AxisModule sandeshaAxisModule = configurationContext.getAxisConfiguration().
            getModule(Constants.SANDESHA2_MODULE_NAME);
        if (sandeshaAxisModule != null) {
View Full Code Here

        as1.addOperation(operation1);
        as1.addOperation(operation2);

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        messageContext = cc.createMessageContext();

        messageContext.setAxisService(as1);

        SOAPEnvelope se = OMAbstractFactory.getSOAP11Factory().createSOAPEnvelope();
View Full Code Here

        AxisService as1 = new AxisService("Service1");
        AxisService as2 = new AxisService("Service2");

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        messageContext = cc.createMessageContext();

        messageContext
                .setTo(new EndpointReference("http://127.0.0.1:8080/axis2/services/Service2"));
View Full Code Here

        AxisService as2 = new AxisService("Service2");

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        messageContext = cc.createMessageContext();

        messageContext
                .setTo(new EndpointReference("http://127.0.0.1:8080/axis2/services/Service2"));
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.