Package org.apache.axis.wsdl
Class Java2WSDL
java.lang.Object
org.apache.axis.wsdl.Java2WSDL
Command line interface to the java2wsdl utility
- Author:
- Ravi Kumar (rkumar@borland.com), Rich Scheuerle (scheu@us.ibm.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
Field BINDING_NAME_OPTprotected String
Field classNameprotected static final int
protected static final int
Field DEPLOY_OPTprotected Emitter
Field emitterprotected static final int
Field EXTRA_CLASSES_OPTprotected static final int
Field HELP_OPTprotected static final int
Field IMPL_CLASS_OPTprotected static final int
Field IMPORT_SCHEMA_OPTprotected static final int
Field INHERITED_CLASS_OPTprotected static final int
Field INPUT_OPTprotected boolean
Field isDeplpyprotected static final int
Field LOCATION_IMPORT_OPTprotected static final int
Field LOCATION_OPTprotected static final int
Field METHODS_ALLOWED_OPTprotected static final int
Field METHODS_NOTALLOWED_OPTprotected int
Field modeprotected static final int
Field NAMESPACE_IMPL_OPTprotected static final int
Field NAMESPACE_OPTprotected HashMap
Field namespaceMapprotected CLOptionDescriptor[]
Define the understood options.protected static final int
Field OUTPUT_IMPL_OPTprotected static final int
Field OUTPUT_OPTprotected static final int
Field OUTPUT_WSDL_MODE_OPTprotected static final int
Field PACKAGE_OPTprotected static final int
Field PORTTYPE_NAME_OPTprotected static final int
Field SERVICE_ELEMENT_NAME_OPTprotected static final int
Field SERVICE_PORT_NAME_OPTprotected static final int
Field SOAPACTION_OPTprotected static final int
Field STOP_CLASSES_OPTprotected static final int
Field STYLE_OPTprotected static final int
Field TYPEMAPPING_OPTprotected String
Field typeMappingVersionprotected static final int
Field USE_OPTprotected String
Field wsdlFilenameprotected String
Field wsdlImplFilename -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addOptions
(CLOptionDescriptor[] newOptions) addOptions Add option descriptions to the tool.protected Emitter
Instantiate an Emitterprotected void
generateServerSide
(Emitter j2w, String wsdlFileName) Generate the server side artifacts from the generated WSDLstatic void
Main Run the Java2WSDL emitter with the specified command-line argumentsprotected boolean
parseOption
(CLOption option) Parse an optionprotected void
printUsage print usage information and quit.protected int
run checks the command-line arguments and runs the tool.protected boolean
validateOptions This method is invoked after the options are set to validate the option settings.
-
Field Details
-
INHERITED_CLASS_OPT
protected static final int INHERITED_CLASS_OPTField INHERITED_CLASS_OPT- See Also:
-
SOAPACTION_OPT
protected static final int SOAPACTION_OPTField SOAPACTION_OPT- See Also:
-
BINDING_NAME_OPT
protected static final int BINDING_NAME_OPTField BINDING_NAME_OPT- See Also:
-
STOP_CLASSES_OPT
protected static final int STOP_CLASSES_OPTField STOP_CLASSES_OPT- See Also:
-
IMPORT_SCHEMA_OPT
protected static final int IMPORT_SCHEMA_OPTField IMPORT_SCHEMA_OPT- See Also:
-
EXTRA_CLASSES_OPT
protected static final int EXTRA_CLASSES_OPTField EXTRA_CLASSES_OPT- See Also:
-
HELP_OPT
protected static final int HELP_OPTField HELP_OPT- See Also:
-
IMPL_CLASS_OPT
protected static final int IMPL_CLASS_OPTField IMPL_CLASS_OPT- See Also:
-
INPUT_OPT
protected static final int INPUT_OPTField INPUT_OPT- See Also:
-
LOCATION_OPT
protected static final int LOCATION_OPTField LOCATION_OPT- See Also:
-
LOCATION_IMPORT_OPT
protected static final int LOCATION_IMPORT_OPTField LOCATION_IMPORT_OPT- See Also:
-
METHODS_ALLOWED_OPT
protected static final int METHODS_ALLOWED_OPTField METHODS_ALLOWED_OPT- See Also:
-
NAMESPACE_OPT
protected static final int NAMESPACE_OPTField NAMESPACE_OPT- See Also:
-
NAMESPACE_IMPL_OPT
protected static final int NAMESPACE_IMPL_OPTField NAMESPACE_IMPL_OPT- See Also:
-
OUTPUT_OPT
protected static final int OUTPUT_OPTField OUTPUT_OPT- See Also:
-
OUTPUT_IMPL_OPT
protected static final int OUTPUT_IMPL_OPTField OUTPUT_IMPL_OPT- See Also:
-
PACKAGE_OPT
protected static final int PACKAGE_OPTField PACKAGE_OPT- See Also:
-
PORTTYPE_NAME_OPT
protected static final int PORTTYPE_NAME_OPTField PORTTYPE_NAME_OPT- See Also:
-
SERVICE_PORT_NAME_OPT
protected static final int SERVICE_PORT_NAME_OPTField SERVICE_PORT_NAME_OPT- See Also:
-
SERVICE_ELEMENT_NAME_OPT
protected static final int SERVICE_ELEMENT_NAME_OPTField SERVICE_ELEMENT_NAME_OPT- See Also:
-
TYPEMAPPING_OPT
protected static final int TYPEMAPPING_OPTField TYPEMAPPING_OPT- See Also:
-
USE_OPT
protected static final int USE_OPTField USE_OPT- See Also:
-
OUTPUT_WSDL_MODE_OPT
protected static final int OUTPUT_WSDL_MODE_OPTField OUTPUT_WSDL_MODE_OPT- See Also:
-
METHODS_NOTALLOWED_OPT
protected static final int METHODS_NOTALLOWED_OPTField METHODS_NOTALLOWED_OPT- See Also:
-
CLASSPATH_OPT
protected static final int CLASSPATH_OPT- See Also:
-
STYLE_OPT
protected static final int STYLE_OPTField STYLE_OPT- See Also:
-
DEPLOY_OPT
protected static final int DEPLOY_OPTField DEPLOY_OPT- See Also:
-
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
Field emitter -
className
Field className -
wsdlFilename
Field wsdlFilename -
wsdlImplFilename
Field wsdlImplFilename -
namespaceMap
Field namespaceMap -
mode
protected int modeField mode -
typeMappingVersion
Field typeMappingVersion -
isDeploy
protected boolean isDeployField isDeplpy
-
-
Constructor Details
-
Java2WSDL
protected Java2WSDL()Instantiate a Java2WSDL emitter.
-
-
Method Details
-
createEmitter
Instantiate an Emitter- Returns:
-
addOptions
addOptions Add option descriptions to the tool. Allows extended classes to add additional options.- Parameters:
newOptions
- CLOptionDescriptor[] the options
-
parseOption
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
run checks the command-line arguments and runs the tool.- Parameters:
args
- String[] command-line arguments.- Returns:
-
generateServerSide
Generate the server side artifacts from the generated WSDL- Parameters:
j2w
- the Java2WSDL emitterwsdlFileName
- the generated WSDL file- Throws:
Exception
-
printUsage
protected void printUsage()printUsage print usage information and quit. -
main
Main Run the Java2WSDL emitter with the specified command-line arguments- Parameters:
args
- String[] command-line arguments
-