Examples of WSDL2AxisServiceBuilder


Examples of org.apache.axis2.description.WSDL2AxisServiceBuilder

                for (Map.Entry<QName, SDODataBindingTypeMappingEntry> e : typeMapping.entrySet()) {
                    typeMapper.addTypeMappingObject(e.getKey(), e.getValue());
                }
                AxisService axisService;
                try {
                    axisService = new WSDL2AxisServiceBuilder(definition, serviceQname, port.getName()).populateService();
                } catch (AxisFault e) {
                    throw new CodeGenerationException(e);
                }
                axisService.setName(port.getBinding().getPortType().getQName().getLocalPart());
                CodeGenConfiguration codegenConfiguration = new CodeGenConfiguration(Collections.EMPTY_MAP);
View Full Code Here

Examples of org.apache.axis2.description.WSDL2AxisServiceBuilder

        // AxisServiceGroup serviceGroup = new AxisServiceGroup(axisConfig);
        // serviceGroup.setServiceGroupName(wsdlPortInfo.getServiceName().getLocalPart());
        // axisConfig.addServiceGroup(serviceGroup);

        WSDL2AxisServiceBuilder builder = new WSDL2AxisServiceBuilder(definition, wsdlPortInfo.getServiceName(), wsdlPortInfo.getPort().getName());
        builder.setServerSide(true);
        AxisService axisService = builder.populateService();

        axisService.setName(entryPointName);
        // axisService.setParent(serviceGroup);
        axisService.setServiceDescription("Tuscany configured AxisService for EntryPoint: '" + entryPointName + '\'');
View Full Code Here

Examples of org.apache.axis2.description.WSDL2AxisServiceBuilder

      }else{
        url = new URL(wsdlURI)
      }

     
      WSDL2AxisServiceBuilder builder =
        new WSDL2AxisServiceBuilder(url.openConnection().getInputStream());
         
      builder.setBaseUri(getBaseUri(wsdlURI));
      return builder.populateService();
    }
View Full Code Here

Examples of org.apache.axis2.description.WSDL2AxisServiceBuilder

                            file1.getName().equals("wsat.wsdl") ||
                            file1.getName().equals("no-service.wsdl")) {
                        continue;
                    }
                    try {
                        WSDL2AxisServiceBuilder builder = new WSDL2AxisServiceBuilder(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");
                        out.flush();
View Full Code Here

Examples of org.apache.axis2.description.WSDL2AxisServiceBuilder

            QName serviceQname = null;
            if (configuration.getServiceName()!=null){
                serviceQname = new QName(wsdl4jDef.getTargetNamespace(), configuration.getServiceName());
            }

            configuration.setAxisService(new WSDL2AxisServiceBuilder(
                    wsdl4jDef,
                    serviceQname,
                    configuration.getPortName()).
                    populateService()
            );
View Full Code Here

Examples of org.apache.axis2.description.WSDL2AxisServiceBuilder

     * @throws DeploymentException
     */
    private AxisService processWSDLFile(InputStream in, File serviceArchiveFile,
                                        boolean isArchive) throws DeploymentException {
        try {
            WSDL2AxisServiceBuilder wsdl2AxisServiceBuilder =
                    new WSDL2AxisServiceBuilder(in, null, null);
            if (serviceArchiveFile != null && isArchive) {
                wsdl2AxisServiceBuilder.setCustomResolver(
                        new AARFileBasedURIResolver(serviceArchiveFile));
                wsdl2AxisServiceBuilder.setCustomWSLD4JResolver(
                        new AARBasedWSDLLocator(serviceArchiveFile, in)
                );
            } else {
                if (serviceArchiveFile != null) {
                    wsdl2AxisServiceBuilder.setBaseUri(
                            serviceArchiveFile.getParentFile().getAbsolutePath());
                }
            }
            return wsdl2AxisServiceBuilder.populateService();
        } catch (AxisFault axisFault) {
            throw new DeploymentException(axisFault);
        }
    }
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.