Class WSDL2Code


  • public class WSDL2Code
    extends org.wso2.carbon.core.AbstractAdmin
    Tool that generate code for the given options
    • Field Summary

      • Fields inherited from class org.wso2.carbon.core.AbstractAdmin

        axisConfig, configurationContext
    • Constructor Summary

      Constructors 
      Constructor Description
      WSDL2Code()  
    • Constructor Detail

      • WSDL2Code

        public WSDL2Code()
    • Method Detail

      • codegen

        public CodegenDownloadData codegen​(String[] options)
                                    throws org.apache.axis2.AxisFault
        This method will generate the code based on the options array. Options arrya should be as follows, new String[] {"-uri", "location of wsdl", "-g" ...}. Thus, the incoming XML should be as follows,

        -uri file://foo ...

        Once codegenerated, location of genereated code will be send as an ID, thus, one could easily download artifact as a zip file or jar file.

        Parameters:
        options -
        Returns:
        String
        Throws:
        org.apache.axis2.AxisFault
      • codegenForCXF

        public CodegenDownloadData codegenForCXF​(String[] options)
                                          throws org.apache.axis2.AxisFault
        Generates code for CXF
        Parameters:
        options -
        Returns:
        Throws:
        org.apache.axis2.AxisFault