Class WSDL2Code

java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.wsdl2code.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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    codegen(String[] options)
    This method will generate the code based on the options array.
    codegenForCXF(String[] options)
    Generates code for CXF

    Methods inherited from class org.wso2.carbon.core.AbstractAdmin

    getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WSDL2Code

      public WSDL2Code()
  • Method Details

    • 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,

      invalid input: '<'ns:codegenRequest xmlns:ns="http://org.wso2.wsf/tools"> -uri file://foo ... invalid input: '<'/ns:codegenRequest>

      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