Examples of WSDL2Android


Examples of com.mcminn.wsdl2android.WSDL2Android

     */
    private Map<String, String> namespaceMap;
   
    public void execute() throws MojoExecutionException
    {
        WSDL2Android wsdl2android = new WSDL2Android();

        if(outputDir != null)
        {
            wsdl2android.setOutputDir(outputDir);
        }

        if(outputPackage != null)
        {
            wsdl2android.setOutputPackage(outputPackage);
        }

        if(outputTypesPackage != null)
        {
            wsdl2android.setOutputTypesPackage(outputTypesPackage);
        }

        if(namespaceMap != null)
        {
            for(String prefix : namespaceMap.keySet())
            {
                wsdl2android.addNamespace(prefix, namespaceMap.get(prefix));
            }
        }

        if(wsdlsets != null && wsdlsets.length > 0)
        {
            FileSetManager fileSetManager = new FileSetManager();
            for(FileSet wsdlset : wsdlsets)
            {
                String[] includedFiles = fileSetManager.getIncludedFiles(wsdlset);
                for(String includedFile : includedFiles)
                {
                    File wsdl = new File(wsdlset.getDirectory() + "/" + includedFile);
                    wsdl2android.addWSDL(wsdl);
                }
            }
            wsdl2android.generate();
        }
        else
        {
            System.out.println("No WSDL sets defined.");
        }
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.