Package org.apache.axis2.deployment

Examples of org.apache.axis2.deployment.ServiceBuilder.populateService()


            axisService.setParent(axisServiceGroup);
            axisService.setClassLoader(currentFile.getClassLoader());

            ServiceBuilder serviceBuilder = new ServiceBuilder(configCtx, axisService);
            serviceBuilder.setWsdlServiceMap(wsdlServices);
            AxisService service = serviceBuilder.populateService(rootElement);

            ArrayList serviceList = new ArrayList();
            serviceList.add(service);
            return serviceList;
        } else if (TAG_SERVICE_GROUP.equals(elementName)) {
View Full Code Here


            AxisService service = new AxisService();
            service.setName("testService");
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/service1.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, configurationContext, service);
            sbuilder.populateService(sbuilder.buildOM());

            ModuleConfiguration moduleConfiguration =
                    service.getModuleConfig("Servie_module");
            assertNotNull(moduleConfiguration);
            Parameter para = moduleConfiguration.getParameter("Servie_module_para");
View Full Code Here

            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/service_overide_non_locked_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            assertNotNull(sbuilder);

        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/service_overide_locked_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            assertNotNull(sbuilder);
            fail("Parmter is locked can not overide");
        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/op_overide_global_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            assertNotNull(sbuilder);
            fail("Parmter is locked can not overide");
        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/Op_overide_Service_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            fail("Parmter is locked can not overide");
        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

            if (getServiceDescriptionImpl().isServerSide())
                serviceBuilder.setServerSide(true);
            else
                serviceBuilder.setServerSide(false);

            axisService = serviceBuilder.populateService();
            axisService.setName(createAxisServiceName());
            isBuiltFromWSDL = true;

        } catch (AxisFault e) {
            // REVIEW: If we couldn't use the WSDL, should we fail instead of continuing to process using annotations?
View Full Code Here

        builder.setServerSide(true);
        // [rfeng] Add a custom resolver to work around WSCOMMONS-228
        builder.setCustomResolver(new URIResolverImpl(definition));
        builder.setBaseUri(definition.getDocumentBaseURI());
        // [rfeng]
        AxisService axisService = builder.populateService();

        String path = URI.create(wsBinding.getURI()).getPath();
        String name = ( path.startsWith( "/") ? path.substring(1) : path );
        axisService.setName(name);
        String endpointURL = wsBinding.getURI();
View Full Code Here

        QName serviceQName = portInfo.getWsdlService() == null ? wsdlService.getQName() : portInfo.getWsdlService();

        WSDLToAxisServiceBuilder wsdlBuilder = new WSDL11ToAxisServiceBuilder(wsdlDefinition, serviceQName , portName);

        //populate with axis2 objects
        AxisService service = wsdlBuilder.populateService();
        service.addParameter(new Parameter(Constants.SERVICE_CLASS, endpointClassName));
        service.setWsdlFound(true);
        service.setClassLoader(classLoader);

        Class endPointClass = classLoader.loadClass(endpointClassName);
View Full Code Here

        serviceBuilder.setServerSide(false);
        // [rfeng] Add a custom resolver to work around WSCOMMONS-228
        serviceBuilder.setCustomResolver(new URIResolverImpl(def));
        serviceBuilder.setBaseUri(def.getDocumentBaseURI());
        // [rfeng]
        AxisService axisService = serviceBuilder.populateService();
        AxisEndpoint axisEndpoint = (AxisEndpoint)axisService.getEndpoints().get(axisService.getEndpointName());
        options.setTo(new EndpointReference(axisEndpoint.getEndpointURL()));
        if (axisEndpoint != null) {
            options.setSoapVersionURI((String)axisEndpoint.getBinding().getProperty(WSDL2Constants.ATTR_WSOAP_VERSION));
        }
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.