Package org.apache.axis2.description

Examples of org.apache.axis2.description.ServiceDescription


                Utils.createSimpleService(serviceName,
                        Echo.class.getName(),
                        operationName);
        UtilsTCPServer.deployService(service);

        ServiceDescription service =
                Utils.createSimpleService(serviceName,
                        org.apache.axis2.engine.Echo.class.getName(),
                        operationName);
        serviceContext = UtilServer.createAdressedEnabledClientSide(service);
    }
View Full Code Here


        return method;
    }

    public void testEchoXMLCompleteASync() throws Exception {
        ServiceDescription service =
                Utils.createSimpleService(serviceName,
                        Echo.class.getName(),
                        operationName);

View Full Code Here

                                System.out));
        call.close();
    }

    public void testEchoXMLCompleteSync() throws Exception {
        ServiceDescription service =
                Utils.createSimpleService(serviceName,
                        Echo.class.getName(),
                        operationName);

        OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here

        super(testName);
    }

    protected void setUp() throws Exception {
        UtilServer.start(Constants.TESTING_PATH + "MTOM-enabledRepository");
        service = new ServiceDescription(serviceName);
        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        service.addParameter(new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS,
                EchoService.class.getName()));

        OperationDescription axisOp = new OperationDescription(operationName);
View Full Code Here

                PhaseMetadata.PHASE_POLICY_DETERMINATION);
        Utils.addHandler(flow,
                new SpeakingHandler(),
                PhaseMetadata.PHASE_POLICY_DETERMINATION);

        ServiceDescription service = Utils.createSimpleService(serviceName,
                Echo.class.getName(),
                operationName);
        service.setInFlow(flow);

        UtilServer.start();
        UtilServer.deployService(service);
        try {
            callTheService();
View Full Code Here

    }

    public void testServiceGroup() throws AxisFault {
        ServiceGroupDescription sgd = ar.getServiceGroup("serviceGroup");
        assertNotNull(sgd);
        ServiceDescription service1 = ar.getService("service1");
        assertNotNull(service1);
        ServiceDescription service2 = ar.getService("service2");
        assertNotNull(service2);
    }
View Full Code Here

        Iterator servicegroups = axisConfig.getServiceGroups();
        while (servicegroups.hasNext()) {
            ServiceGroupDescription sericeGroup = (ServiceGroupDescription) servicegroups.next();
            Iterator services = sericeGroup.getServices();
            while (services.hasNext()) {
                ServiceDescription serviceDescription = (ServiceDescription) services.next();
                serviceDescription.addModuleOperations(module, axisConfig);
                engageModuleToServiceFromGlobal(serviceDescription, module);
                serviceDescription.addToEngagModuleList(module);
            }
            sericeGroup.addModule(module.getName());
        }
    }
View Full Code Here

        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        AxisConfiguration er = builder.buildConfigurationContext(filename)
                .getAxisConfiguration();

        assertNotNull(er);
        ServiceDescription service = er.getService("service2");
        assertNotNull(service);
        //commentd since there is no service based messgeReceivers
        /*MessageReceiver provider = service.getMessageReceiver();
        assertNotNull(provider);
        assertTrue(provider instanceof RawXMLINOutMessageReceiver);*/
        ClassLoader cl = service.getClassLoader();
        assertNotNull(cl);
        Class.forName("Echo2", true, cl);
        assertNotNull(service.getName());
        //no style for the service
        //   assertEquals(service.getStyle(),"rpc");

        Flow flow = service.getFaultInFlow();
        assertTrue(flow.getHandlerCount() > 0);
        flow = service.getInFlow();
        assertTrue(flow.getHandlerCount() > 0);
        flow = service.getOutFlow();
        assertTrue(flow.getHandlerCount() > 0);
        assertNotNull(service.getParameter("para2"));

        OperationDescription op = service.getOperation(new QName("opname"));
        assertNotNull(op);

    }
View Full Code Here

    }

    //  TODO this logic needed to be improved, as the Dispatching is almost garentnee to fail
    public ServiceDescription findService(MessageContext messageContext) throws AxisFault {
        EndpointReference toEPR = messageContext.getTo();
        ServiceDescription service = null;
        if (toEPR != null) {
            String address = toEPR.getAddress();
            if (Final.WSA_ANONYMOUS_URL.equals(address) || Submission.WSA_ANONYMOUS_URL.equals(address)) {
                return null;
            }
View Full Code Here

        try {
            InputStream in = new FileInputStream(
                    getTestResourceFile("deployment/BadService.xml"));

//            DeploymentParser parser = new DeploymentParser(in, null);
            ServiceDescription axisService = new ServiceDescription();
            ServiceBuilder builder = new ServiceBuilder(in,null,axisService);
            builder.populateService(builder.buildOM());
            fail(
                    "this must fail gracefully with DeploymentException or FileNotFoundException");
        } catch (FileNotFoundException e) {
View Full Code Here

TOP

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

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.