Package org.apache.axis2.description

Examples of org.apache.axis2.description.WSDLToAxisServiceBuilder.populateService()


            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

            log.debug("Configuring service " + axisService.getName() + " using: " + service_file);
            try {
                if (configCtx == null)
                    configCtx = new ConfigurationContext(axisService.getAxisConfiguration());
                ServiceBuilder builder = new ServiceBuilder(ais, configCtx, axisService);
                builder.populateService(builder.buildOM());
            } finally {
                ais.close();
            }
            // the service builder only updates the module list but do not engage them
            // modules have to be engaged manually,
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, new AxisConfiguration(), service);
            sbuilder.populateService(sbuilder.buildOM());

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

            axisService.setParent(axisServiceGroup);
            axisService.setClassLoader(engine.getCurrentFileItem().getClassLoader());

            ServiceBuilder serviceBuilder = new ServiceBuilder(axisConfig, axisService);
            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.setParent(axisServiceGroup);
            axisService.setClassLoader(engine.getCurrentFileItem().getClassLoader());

            ServiceBuilder serviceBuilder = new ServiceBuilder(axisConfig, axisService);
            AxisService service = serviceBuilder.populateService(rootElement);

            ArrayList serviceList = new ArrayList();

            if (!axisService.isWsdlfound()) {
                //trying to generate WSDL for the service using JAM  and Java refelection
View Full Code Here

        XMLUnit.setIgnoreWhitespace(true);
        File testResourceFile = new File(wsdlLocation);
        try {
            WSDL11ToAllAxisServicesBuilder builder = new WSDL11ToAllAxisServicesBuilder(
                    new FileInputStream(testResourceFile));
            AxisService axisService = builder.populateService();
            System.out.println("WSDL file: " + testResourceFile.getAbsolutePath());
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            axisService.printWSDL(baos);
            System.out.println(new String(baos.toByteArray()));
            assertXMLEqual(new FileReader(testResourceFile), new StringReader(new String(baos.toByteArray())));
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

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.