Package org.apache.axis2.engine

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


        // Need to create full description hierarchy to prevent NullPointerExceptions
        AxisOperation axisOperation = new OutInAxisOperation(new QName("Temp"));
        AxisService axisService = new AxisService("Temp");
        AxisConfiguration axisConfiguration = new AxisConfiguration();
        axisService.addOperation(axisOperation);
        axisConfiguration.addService(axisService);
        ConfigurationContext configurationContext = new ConfigurationContext(axisConfiguration);

        // Make addressing required using the same property as the AddressingConfigurator on the request
        MessageContext request = configurationContext.createMessageContext();
        request.setProperty(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER, AddressingConstants.ADDRESSING_REQUIRED);
View Full Code Here


        String portName = "port1";
        // We don't use the setup method since we do not want the parameters set on this
        // service
        // setupAxisService(svc1, svc1QN, portName);
        svc1.setName(generateAxisServiceName(svc1QN, portName));
        axisCfg.addService(svc1);
       
        String extraName = ActivateUtils.getAxisServiceExternalizeExtraName(svc1) + "_NoMatch";
        AxisService foundService = ActivateUtils.findService(axisCfg, AxisService.class.getName(),
                generateAxisServiceName(svc1QN, portName), extraName);
        assertSame("Should have found matching service without matching extraname", svc1, foundService);
View Full Code Here

            WSDL11ToAllAxisServicesBuilder builder = new WSDL11ToAllAxisServicesBuilder(
                    new FileInputStream(testResourceFile));
            AxisService axisService = builder.populateService();
            ConfigurationContext configContext = ConfigurationContextFactory.createDefaultConfigurationContext();
            AxisConfiguration axisConfig = configContext.getAxisConfiguration();
            axisConfig.addService(axisService);
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            axisService.printWSDL(baos);
            assertXMLEqual(new FileReader(testResourceFile), new StringReader(new String(baos.toByteArray())));
        } catch (Exception e) {
            System.out.println("Error in WSDL : " + testResourceFile.getName());
View Full Code Here

        as3.addEndpoint("VersionEndpoint", new AxisEndpoint());
        as4.addEndpoint("EchoEndpoint", new AxisEndpoint());

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);
        ac.addService(as4);

        RequestURIBasedServiceDispatcher ruisd = new RequestURIBasedServiceDispatcher();
View Full Code Here

        as4.addEndpoint("EchoEndpoint", new AxisEndpoint());

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);
        ac.addService(as4);

        RequestURIBasedServiceDispatcher ruisd = new RequestURIBasedServiceDispatcher();
View Full Code Here

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);
        ac.addService(as4);

        RequestURIBasedServiceDispatcher ruisd = new RequestURIBasedServiceDispatcher();

        /**
 
View Full Code Here

        ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
        AxisConfiguration ac = cc.getAxisConfiguration();
        ac.addService(as1);
        ac.addService(as2);
        ac.addService(as3);
        ac.addService(as4);

        RequestURIBasedServiceDispatcher ruisd = new RequestURIBasedServiceDispatcher();

        /**
         * Tests for global services
View Full Code Here

    public void testFindOperation() throws AxisFault {

        MessageContext messageContext;
        AxisService as1 = new AxisService("Service1");
        AxisConfiguration ac = new AxisConfiguration();
        ac.addService(as1);

        AxisOperation operation1 = new InOnlyAxisOperation(new QName("operation1"));
        AxisOperation operation2 = new InOnlyAxisOperation(new QName("operation2"));
        as1.addOperation(operation1);
        as1.addOperation(operation2);
View Full Code Here

        MessageContext messageContext;
        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();

        SOAPEnvelope se = OMAbstractFactory.getSOAP11Factory().createSOAPEnvelope();
        SOAPBody sb = OMAbstractFactory.getSOAP11Factory().createSOAPBody(se);
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();

        SOAPEnvelope se = OMAbstractFactory.getSOAP11Factory().createSOAPEnvelope();
        SOAPBody sb = OMAbstractFactory.getSOAP11Factory().createSOAPBody(se);
        sb.addChild(OMAbstractFactory.getSOAP11Factory().createOMElement("operation2",
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.