org.wso2.carbon.wsdl2code
Class WSDL2Code

java.lang.Object
  extended by org.wso2.carbon.core.AbstractAdmin
      extended by 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
WSDL2Code()
           
 
Method Summary
 CodegenDownloadData codegen(String[] options)
          This method will generate the code based on the options array.
 CodegenDownloadData 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 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


Copyright © 2015 WSO2. All rights reserved.