Examples of populateService()


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

                InputStream ais = axis2config.toURL().openStream();
                if (ais != null) {
                    LOG.debug("Configuring service using: "+axis2config.toURL());
                    ConfigurationContext configCtx = new ConfigurationContext(axisConfig);
                    ServiceBuilder builder = new ServiceBuilder(is, configCtx, axisService);
                    builder.populateService(builder.buildOM());
                }
            } catch (FileNotFoundException except) {
                LOG.debug("Axis2 service configuration not found: " + axis2config);
            } catch (IOException except) {
                LOG.warn("Exception while configuring service: " + axis2config, except);
View Full Code Here

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

            try {
                InputStream ais = file.toURI().toURL().openStream();
                if (ais != null) {
                    if (__log.isDebugEnabled()) __log.debug("Configuring service " + _serviceName + " using: " + file);
                    ServiceBuilder builder = new ServiceBuilder(ais, new ConfigurationContext(client.getAxisConfiguration()), client.getAxisService());
                    builder.populateService(builder.buildOM());
                }
            } catch (Exception e) {
                if (__log.isWarnEnabled()) __log.warn("Exception while configuring service: " + _serviceName, e);
            }
        }
View Full Code Here

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

                InputStream ais = axis2config.toURL().openStream();
                if (ais != null) {
                    LOG.debug("Configuring service using: "+axis2config.toURL());
                    ConfigurationContext configCtx = new ConfigurationContext(axisConfig);
                    ServiceBuilder builder = new ServiceBuilder(ais, configCtx, axisService);
                    builder.populateService(builder.buildOM());
                }
            } catch (FileNotFoundException except) {
                LOG.debug("Axis2 service configuration not found: " + axis2config);
            } catch (IOException except) {
                LOG.warn("Exception while configuring service: " + axis2config, except);
View Full Code Here

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

                    OMElement serviceEle = (OMElement) itr.next();
                    if (serviceEle.getLocalName().toLowerCase().equals("service")) {
                        if (serviceEle.getAttribute(new QName("name")) != null &&
                                serviceEle.getAttribute(new QName("name")).getAttributeValue().equals(axisService.getName())) {

                            builder.populateService(serviceEle);
                            // This is a hack to avoid security configurations get persisted when we configure using
                            // services.xml file or policy.xml file BPEL package. But this should be fix at the
                            // Carbon Persistence manager.
                            Parameter param = new Parameter(CONFIGURED_USING_BPEL_PKG_CONFIG_FILES, "true");
                            axisService.addParameter(param);
View Full Code Here

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

                            axisService.addParameter(param);

                        } else if (serviceEle.getAttribute(new QName("name")) != null && // Starts with check is used to handle anonymous services generated for external service.
                                axisService.getName().startsWith("axis_service_for_" + serviceEle.getAttributeValue(new QName("name")))) {
                            String svcName = axisService.getName();
                            AxisService axisSvc = builder.populateService(serviceEle);
                            axisSvc.setName(svcName);

                        }
                    }
                }
View Full Code Here

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

            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

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

                        AxisService axisService = new AxisService(bundleSymbolicName);
                        axisService.setParent(serviceGroup);
                        axisService.setClassLoader(loader);
                        ServiceBuilder serviceBuilder = new ServiceBuilder(configCtx, axisService);
                        serviceBuilder.setWsdlServiceMap(wsdlServicesMap);
                        AxisService service = serviceBuilder.populateService(rootElement);
                        ArrayList<AxisService> serviceList = new ArrayList<AxisService>();
                        serviceList.add(service);
                        DeploymentEngine.addServiceGroup(serviceGroup,
                                serviceList,
                                null,
View Full Code Here

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

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

        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

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

            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
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.