Package org.apache.geronimo.jaxws.wsdl

Examples of org.apache.geronimo.jaxws.wsdl.WsdlGenerator


            throw new DeploymentException("WSDL must be specified for @WebServiceProvider service " + serviceName);
        }

        log.debug("Service " + serviceName + " does not have WSDL. Generating WSDL...");

        WsdlGenerator wsdlGenerator = getWsdlGenerator();
       
        WsdlGeneratorOptions options = new WsdlGeneratorOptions();
        options.setSAAJ(WsdlGeneratorOptions.SAAJ.Axis2);
       
        // set wsdl service
        if (portInfo.getWsdlService() == null) {
            options.setWsdlService(JAXWSUtils.getServiceQName(serviceClass));
        } else {
            options.setWsdlService(portInfo.getWsdlService());
        }
       
        // set wsdl port
        if (portInfo.getWsdlPort() != null) {
            options.setWsdlPort(portInfo.getWsdlPort());
        }
               
        String wsdlFile = wsdlGenerator.generateWsdl(module, serviceClass.getName(), module.getEarContext(), options);
        portInfo.setWsdlFile(wsdlFile);
       
        log.debug("Generated " + wsdlFile + " for service " + serviceName);
    }   
View Full Code Here


            throw new DeploymentException("WSDL must be specified for @WebServiceProvider service " + serviceName);
        }
       
        LOG.debug("Service " + serviceName + " does not have WSDL. Generating WSDL...");
       
        WsdlGenerator wsdlGenerator = getWsdlGenerator();
       
        WsdlGeneratorOptions options = new WsdlGeneratorOptions();
        options.setSAAJ(WsdlGeneratorOptions.SAAJ.SUN);
       
        JaxWsImplementorInfo serviceInfo = new JaxWsImplementorInfo(serviceClass);
       
        // set wsdl service
        if (portInfo.getWsdlService() == null) {
            options.setWsdlService(serviceInfo.getServiceName());
        } else {
            options.setWsdlService(portInfo.getWsdlService());
        }
       
        // set wsdl port
        if (portInfo.getWsdlPort() != null) {
            options.setWsdlPort(portInfo.getWsdlPort());
        }
                       
        String wsdlFile = wsdlGenerator.generateWsdl(module, serviceClass.getName(), module.getEarContext(), options);
        portInfo.setWsdlFile(wsdlFile);
       
        LOG.debug("Generated " + wsdlFile + " for service " + serviceName);
    }    
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jaxws.wsdl.WsdlGenerator

Copyright © 2018 www.massapicom. 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.