Examples of populateService()


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

    public static AxisService createService(AxisConfiguration axisConfig, QName serviceQName, String port,
                                            String axisName, Definition wsdlDef, MessageReceiver receiver) throws AxisFault {

        WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisServiceBuilder(wsdlDef, serviceQName, port);
        AxisService axisService = serviceBuilder.populateService();
        axisService.setName(axisName);
        axisService.setWsdlFound(true);
        axisService.setClassLoader(axisConfig.getServiceClassLoader());
        Iterator operations = axisService.getOperations();
        while (operations.hasNext()) {
View Full Code Here

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

        // Allow access to read properties. Requires PropertiesPermission in security policy.
        AxisService axisService;        
        try {       
            axisService = AccessController.doPrivileged(new PrivilegedExceptionAction<AxisService>() {
                public AxisService run() throws AxisFault {
                    return serviceBuilder.populateService();
                }
            });
            } catch ( PrivilegedActionException e ) {
               throw (AxisFault) e.getException();
            }
View Full Code Here

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

        // security policy.
        AxisService axisService;
        try {
            axisService = AccessController.doPrivileged(new PrivilegedExceptionAction<AxisService>() {
                public AxisService run() throws AxisFault {
                    return builder.populateService();
                }
            });
        } catch (PrivilegedActionException e) {
            throw (AxisFault)e.getException();
        }
View Full Code Here

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

        try{
            CodeGenerationEngine codeGenerationEngine  = new CodeGenerationEngine(codeGenConfiguration);
            Definition wsdl4jDef = codeGenerationEngine.readInTheWSDLFile(serviceUri + "?wsdl");
            WSDL11ToAxisServiceBuilder wsdl11ToAxisServiceBuilder = new WSDL11ToAxisServiceBuilder
                    (wsdl4jDef, null, null, false);
            axisService = wsdl11ToAxisServiceBuilder.populateService();
        } catch (WSDLException e) {
            log.warn("Operation List can not be created for given wsdl uri  " + serviceUri + "?wsdl");
        } catch (CodeGenerationException e) {
            log.warn("Operation List can not be created for given wsdl uri  " + serviceUri + "?wsdl");
        }
View Full Code Here

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

            serviceBuilder.setBaseUri(wsdlUri.toString());
            serviceBuilder.setCustomResolver(new Axis2UriResolver());
            serviceBuilder.setCustomWSLD4JResolver(new Axis2WSDLLocator(wsdlUri));
            serviceBuilder.setServerSide(true);

            AxisService axisService = serviceBuilder.populateService();
            axisService.setName(serviceName.getLocalPart());
            axisService.setWsdlFound(true);
            axisService.setCustomWsdl(true);
            axisService.setClassLoader(getConfigurationContext().getAxisConfiguration().getServiceClassLoader());
View Full Code Here

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

                    documentElement.serialize(outputStream);
                    InputStream inStream = new ByteArrayInputStream(outputStream.toByteArray());
                    wsdl11ToAxisServiceBuilder = new WSDL11ToAllAxisServicesBuilder(inStream);
                    (wsdl11ToAxisServiceBuilder).setBaseUri(uri);
                    wsdl11ToAxisServiceBuilder.setAllPorts(true);
                    AxisService service = wsdl11ToAxisServiceBuilder.populateService();
                    Map endpointsMap = service.getEndpoints();
                    Iterator iterator = endpointsMap.values().iterator();
                    String[] eprs = new String[endpointsMap.size()];
                    int i=0;
                    while (iterator.hasNext()) {
View Full Code Here

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

                                new AARFileBasedURIResolver(file));
                    }
                    if (wsdlURL != null) {
                        wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString());
                    }
                    axisService = wsdl2AxisServiceBuilder.populateService();
                    axisService.setWsdlFound(true);
                    axisService.setCustomWsdl(true);
                    axisService.setName(serviceName);
                }
                if (axisService == null) {
View Full Code Here

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

                                    new AARFileBasedURIResolver(file));
                        }
                        if (wsdlURL != null) {
                            wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString());
                        }
                        axisService = wsdl2AxisServiceBuilder.populateService();
                        axisService.setWsdlFound(true);
                        axisService.setCustomWsdl(true);
                        // Set the default message receiver for the operations that were
                        // not listed in the services.xml
                        Iterator operations = axisService.getOperations();
View Full Code Here

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

                        continue;
                    }
                    try {
                        WSDL11ToAxisServiceBuilder builder = new WSDL11ToAxisServiceBuilder(
                                new FileInputStream(file1), null, null);
                        AxisService service = builder.populateService();
                        System.out.println("Testinf file: " + file1.getName());
                        configContext.getAxisConfiguration().addService(service);
                        OutputStream out =
                                new FileOutputStream(new File(outLocation, file1.getName()));
                        service.printWSDL(out, "http://google.com/axis2/services");
View Full Code Here

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

                                new AARFileBasedURIResolver(file));
                    }
                    if (wsdlURL != null) {
                        wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString());
                    }
                    axisService = wsdl2AxisServiceBuilder.populateService();
                    axisService.setWsdlFound(true);
                    axisService.setCustomWsdl(true);
                    axisService.setName(serviceName);
                }
                if (axisService == null) {
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.