Package org.apache.axis.wsdl
Class Java2WSDL
- java.lang.Object
-
- org.apache.axis.wsdl.Java2WSDL
-
public class Java2WSDL extends java.lang.ObjectCommand line interface to the java2wsdl utility- Author:
- Ravi Kumar (rkumar@borland.com), Rich Scheuerle (scheu@us.ibm.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected static intBINDING_NAME_OPTField BINDING_NAME_OPTprotected java.lang.StringclassNameField classNameprotected static intCLASSPATH_OPTprotected static intDEPLOY_OPTField DEPLOY_OPTprotected EmitteremitterField emitterprotected static intEXTRA_CLASSES_OPTField EXTRA_CLASSES_OPTprotected static intHELP_OPTField HELP_OPTprotected static intIMPL_CLASS_OPTField IMPL_CLASS_OPTprotected static intIMPORT_SCHEMA_OPTField IMPORT_SCHEMA_OPTprotected static intINHERITED_CLASS_OPTField INHERITED_CLASS_OPTprotected static intINPUT_OPTField INPUT_OPTprotected booleanisDeployField isDeplpyprotected static intLOCATION_IMPORT_OPTField LOCATION_IMPORT_OPTprotected static intLOCATION_OPTField LOCATION_OPTprotected static intMETHODS_ALLOWED_OPTField METHODS_ALLOWED_OPTprotected static intMETHODS_NOTALLOWED_OPTField METHODS_NOTALLOWED_OPTprotected intmodeField modeprotected static intNAMESPACE_IMPL_OPTField NAMESPACE_IMPL_OPTprotected static intNAMESPACE_OPTField NAMESPACE_OPTprotected java.util.HashMapnamespaceMapField namespaceMapprotected CLOptionDescriptor[]optionsDefine the understood options.protected static intOUTPUT_IMPL_OPTField OUTPUT_IMPL_OPTprotected static intOUTPUT_OPTField OUTPUT_OPTprotected static intOUTPUT_WSDL_MODE_OPTField OUTPUT_WSDL_MODE_OPTprotected static intPACKAGE_OPTField PACKAGE_OPTprotected static intPORTTYPE_NAME_OPTField PORTTYPE_NAME_OPTprotected static intSERVICE_ELEMENT_NAME_OPTField SERVICE_ELEMENT_NAME_OPTprotected static intSERVICE_PORT_NAME_OPTField SERVICE_PORT_NAME_OPTprotected static intSOAPACTION_OPTField SOAPACTION_OPTprotected static intSTOP_CLASSES_OPTField STOP_CLASSES_OPTprotected static intSTYLE_OPTField STYLE_OPTprotected static intTYPEMAPPING_OPTField TYPEMAPPING_OPTprotected java.lang.StringtypeMappingVersionField typeMappingVersionprotected static intUSE_OPTField USE_OPTprotected java.lang.StringwsdlFilenameField wsdlFilenameprotected java.lang.StringwsdlImplFilenameField wsdlImplFilename
-
Constructor Summary
Constructors Modifier Constructor Description protectedJava2WSDL()Instantiate a Java2WSDL emitter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddOptions(CLOptionDescriptor[] newOptions)addOptions Add option descriptions to the tool.protected EmittercreateEmitter()Instantiate an Emitterprotected voidgenerateServerSide(Emitter j2w, java.lang.String wsdlFileName)Generate the server side artifacts from the generated WSDLstatic voidmain(java.lang.String[] args)Main Run the Java2WSDL emitter with the specified command-line argumentsprotected booleanparseOption(CLOption option)Parse an optionprotected voidprintUsage()printUsage print usage information and quit.protected intrun(java.lang.String[] args)run checks the command-line arguments and runs the tool.protected booleanvalidateOptions()validateOptions This method is invoked after the options are set to validate the option settings.
-
-
-
Field Detail
-
INHERITED_CLASS_OPT
protected static final int INHERITED_CLASS_OPT
Field INHERITED_CLASS_OPT- See Also:
- Constant Field Values
-
SOAPACTION_OPT
protected static final int SOAPACTION_OPT
Field SOAPACTION_OPT- See Also:
- Constant Field Values
-
BINDING_NAME_OPT
protected static final int BINDING_NAME_OPT
Field BINDING_NAME_OPT- See Also:
- Constant Field Values
-
STOP_CLASSES_OPT
protected static final int STOP_CLASSES_OPT
Field STOP_CLASSES_OPT- See Also:
- Constant Field Values
-
IMPORT_SCHEMA_OPT
protected static final int IMPORT_SCHEMA_OPT
Field IMPORT_SCHEMA_OPT- See Also:
- Constant Field Values
-
EXTRA_CLASSES_OPT
protected static final int EXTRA_CLASSES_OPT
Field EXTRA_CLASSES_OPT- See Also:
- Constant Field Values
-
HELP_OPT
protected static final int HELP_OPT
Field HELP_OPT- See Also:
- Constant Field Values
-
IMPL_CLASS_OPT
protected static final int IMPL_CLASS_OPT
Field IMPL_CLASS_OPT- See Also:
- Constant Field Values
-
INPUT_OPT
protected static final int INPUT_OPT
Field INPUT_OPT- See Also:
- Constant Field Values
-
LOCATION_OPT
protected static final int LOCATION_OPT
Field LOCATION_OPT- See Also:
- Constant Field Values
-
LOCATION_IMPORT_OPT
protected static final int LOCATION_IMPORT_OPT
Field LOCATION_IMPORT_OPT- See Also:
- Constant Field Values
-
METHODS_ALLOWED_OPT
protected static final int METHODS_ALLOWED_OPT
Field METHODS_ALLOWED_OPT- See Also:
- Constant Field Values
-
NAMESPACE_OPT
protected static final int NAMESPACE_OPT
Field NAMESPACE_OPT- See Also:
- Constant Field Values
-
NAMESPACE_IMPL_OPT
protected static final int NAMESPACE_IMPL_OPT
Field NAMESPACE_IMPL_OPT- See Also:
- Constant Field Values
-
OUTPUT_OPT
protected static final int OUTPUT_OPT
Field OUTPUT_OPT- See Also:
- Constant Field Values
-
OUTPUT_IMPL_OPT
protected static final int OUTPUT_IMPL_OPT
Field OUTPUT_IMPL_OPT- See Also:
- Constant Field Values
-
PACKAGE_OPT
protected static final int PACKAGE_OPT
Field PACKAGE_OPT- See Also:
- Constant Field Values
-
PORTTYPE_NAME_OPT
protected static final int PORTTYPE_NAME_OPT
Field PORTTYPE_NAME_OPT- See Also:
- Constant Field Values
-
SERVICE_PORT_NAME_OPT
protected static final int SERVICE_PORT_NAME_OPT
Field SERVICE_PORT_NAME_OPT- See Also:
- Constant Field Values
-
SERVICE_ELEMENT_NAME_OPT
protected static final int SERVICE_ELEMENT_NAME_OPT
Field SERVICE_ELEMENT_NAME_OPT- See Also:
- Constant Field Values
-
TYPEMAPPING_OPT
protected static final int TYPEMAPPING_OPT
Field TYPEMAPPING_OPT- See Also:
- Constant Field Values
-
USE_OPT
protected static final int USE_OPT
Field USE_OPT- See Also:
- Constant Field Values
-
OUTPUT_WSDL_MODE_OPT
protected static final int OUTPUT_WSDL_MODE_OPT
Field OUTPUT_WSDL_MODE_OPT- See Also:
- Constant Field Values
-
METHODS_NOTALLOWED_OPT
protected static final int METHODS_NOTALLOWED_OPT
Field METHODS_NOTALLOWED_OPT- See Also:
- Constant Field Values
-
CLASSPATH_OPT
protected static final int CLASSPATH_OPT
- See Also:
- Constant Field Values
-
STYLE_OPT
protected static final int STYLE_OPT
Field STYLE_OPT- See Also:
- Constant Field Values
-
DEPLOY_OPT
protected static final int DEPLOY_OPT
Field DEPLOY_OPT- See Also:
- Constant Field Values
-
options
protected CLOptionDescriptor[] options
Define the understood options. Each CLOptionDescriptor contains: - The "long" version of the option. Eg, "help" means that "--help" will be recognised. - The option flags, governing the option's argument(s). - The "short" version of the option. Eg, 'h' means that "-h" will be recognised. - A description of the option for the usage message
-
emitter
protected Emitter emitter
Field emitter
-
className
protected java.lang.String className
Field className
-
wsdlFilename
protected java.lang.String wsdlFilename
Field wsdlFilename
-
wsdlImplFilename
protected java.lang.String wsdlImplFilename
Field wsdlImplFilename
-
namespaceMap
protected java.util.HashMap namespaceMap
Field namespaceMap
-
mode
protected int mode
Field mode
-
typeMappingVersion
protected java.lang.String typeMappingVersion
Field typeMappingVersion
-
isDeploy
protected boolean isDeploy
Field isDeplpy
-
-
Method Detail
-
createEmitter
protected Emitter createEmitter()
Instantiate an Emitter- Returns:
-
addOptions
protected void addOptions(CLOptionDescriptor[] newOptions)
addOptions Add option descriptions to the tool. Allows extended classes to add additional options.- Parameters:
newOptions- CLOptionDescriptor[] the options
-
parseOption
protected boolean parseOption(CLOption option)
Parse an option- Parameters:
option- CLOption is the option- Returns:
-
validateOptions
protected boolean validateOptions()
validateOptions This method is invoked after the options are set to validate the option settings.- Returns:
-
run
protected int run(java.lang.String[] args)
run checks the command-line arguments and runs the tool.- Parameters:
args- String[] command-line arguments.- Returns:
-
generateServerSide
protected void generateServerSide(Emitter j2w, java.lang.String wsdlFileName) throws java.lang.Exception
Generate the server side artifacts from the generated WSDL- Parameters:
j2w- the Java2WSDL emitterwsdlFileName- the generated WSDL file- Throws:
java.lang.Exception
-
printUsage
protected void printUsage()
printUsage print usage information and quit.
-
main
public static void main(java.lang.String[] args)
Main Run the Java2WSDL emitter with the specified command-line arguments- Parameters:
args- String[] command-line arguments
-
-