public class Java2WSDL {
private static Log log = LogFactory.getLog(Java2WSDL.class);
public static void main(String[] args) throws Exception {
Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(
args);
if (isJwsOptionEnabled(commandLineOptionParser)){
JAXWS2WSDLCodegenEngine engine = new JAXWS2WSDLCodegenEngine(commandLineOptionParser.getAllOptions(), args);
engine.generate();
return;
}
// validate the arguments
validateCommandLineOptions(commandLineOptionParser);
Java2WSDLCodegenEngine engine = new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions());
engine.generate();
log.info("WSDL created at "+ engine.getOutputFile());
}