Package org.apache.ws.java2wsdl.utils

Examples of org.apache.ws.java2wsdl.utils.Java2WSDLCommandLineOptionParser


   * @param args
   */
  public static void main(String[] args)
  {
    //parse the cmd line args
    Java2WSDLCommandLineOptionParser commandLineOptionParser =
                            new Java2WSDLCommandLineOptionParser(args);
        //  validate the arguments
        validateCommandLineOptions(commandLineOptionParser);
   
    Java2WSDLGeneratorFactory.getInstance().createGenerator().
                        generateWSDL(commandLineOptionParser.getAllOptions());

    // Uncomment the following statement to directly run the Axis2 tool
    // without
    // runAxis2Tool(args);
  }
View Full Code Here


        java2WsdlBuilder = new TuscanyJava2WSDLBuilder(genParams);
    }

    protected boolean validateInputArgs(String[] args) {
        boolean isValid = true;
        Java2WSDLCommandLineOptionParser parser = new Java2WSDLCommandLineOptionParser(args);
        if (parser.getAllOptions().size() == 0) {
            Java2WSDL.printUsage();
            isValid = false;
        } else if (parser.getInvalidOptions(new Java2WSDLOptionsValidator()).size() > 0) {
            Java2WSDL.printUsage();
            isValid = false;
        }

        if (isValid) {
            commandLineOptions = parser.getAllOptions();
        }

        return isValid;
    }
View Full Code Here

        optionsList.add(wsdlOutputDir);
        optionsList.add("-of");
        optionsList.add(uuid + ".xml");
        parseXC(xcValue, optionsList);
        String[] args = optionsList.toArray(new String[optionsList.size()]);
        Java2WSDLCommandLineOptionParser commandLineOptionParser =
                new Java2WSDLCommandLineOptionParser(args);
        try {
            Map allOptions = commandLineOptionParser.getAllOptions();
            List list =
                    commandLineOptionParser.getInvalidOptions(new Java2WSDLOptionsValidator());
            if (list.size() > 0) {
                String faultOptions = "";
                for (Object aList : list) {
                    Java2WSDLCommandLineOption commandLineOption =
                            (Java2WSDLCommandLineOption) aList;
View Full Code Here

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

import org.apache.ws.java2wsdl.utils.Java2WSDLCommandLineOptionParser;
import org.apache.ws.java2wsdl.utils.Java2WSDLOptionsValidator;

public class Java2WSDL {
    public static void main(String[] args) {
        Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(
                args);
        //  validate the arguments
        validateCommandLineOptions(commandLineOptionParser);
        try {
            new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions()).generate();
        } catch (Exception e) {
            System.out.println("An error occured while generating code" + e.getMessage());
        }
    }
View Full Code Here

  }
       
     protected boolean validateInputArgs(String[] args)
  {
    boolean isValid = true;
    Java2WSDLCommandLineOptionParser parser = new Java2WSDLCommandLineOptionParser(args);
    if (parser.getAllOptions().size() == 0) {
      Java2WSDL.printUsage();
      isValid = false;
    } else if (parser.getInvalidOptions(new Java2WSDLOptionsValidator())
        .size() > 0) {
      Java2WSDL.printUsage();
      isValid = false;
    }

    if (isValid)
    {
      commandLineOptions = parser.getAllOptions();
    }

    return isValid;
  }
View Full Code Here

        java2WsdlBuilder = new TuscanyJava2WSDLBuilder(genParams);
    }

    protected boolean validateInputArgs(String[] args) {
        boolean isValid = true;
        Java2WSDLCommandLineOptionParser parser = new Java2WSDLCommandLineOptionParser(args);
        if (parser.getAllOptions().size() == 0) {
            Java2WSDL.printUsage();
            isValid = false;
        } else if (parser.getInvalidOptions(new Java2WSDLOptionsValidator()).size() > 0) {
            Java2WSDL.printUsage();
            isValid = false;
        }

        if (isValid) {
            commandLineOptions = parser.getAllOptions();
        }

        return isValid;
    }
View Full Code Here

    /**
     * @param args
     */
    public static void main(String[] args) {
        // parse the cmd line args
        Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(args);

        // validate the arguments
        validateCommandLineOptions(commandLineOptionParser);

        Java2WSDLGeneratorFactory.getInstance().createGenerator().generateWSDL(commandLineOptionParser.getAllOptions());

        // Uncomment the following statement to directly run the Axis2 tool
        // without
        // runAxis2Tool(args);
    }
View Full Code Here

import org.apache.ws.java2wsdl.utils.Java2WSDLCommandLineOptionParser;
import org.apache.ws.java2wsdl.utils.Java2WSDLOptionsValidator;

public class Java2WSDL {
    public static void main(String[] args) {
        Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(
                args);
        //  validate the arguments
        validateCommandLineOptions(commandLineOptionParser);
        try {
            new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions()).generate();
        } catch (Exception e) {
            System.out.println("An error occured while generating code" + e.getMessage());
        }
    }
View Full Code Here

import org.apache.ws.java2wsdl.utils.Java2WSDLCommandLineOptionParser;
import org.apache.ws.java2wsdl.utils.Java2WSDLOptionsValidator;

public class Java2WSDL {
    public static void main(String[] args) throws Exception {
        Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(
                args);
        //  validate the arguments
        validateCommandLineOptions(commandLineOptionParser);
        Java2WSDLCodegenEngine engine = new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions());
        engine.generate();
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.java2wsdl.utils.Java2WSDLCommandLineOptionParser

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.