Task to execute the WSDL2Java Tool for Axis1.
| Fields inherited from class | Fields |
|---|---|
class org.gradle.api.DefaultTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION |
| Type | Name and description |
|---|---|
static java.lang.String |
MAIN_CLASS_NAME |
java.util.List<java.lang.String> |
addArgsAdditional arguments |
boolean |
allowInvalidURLThis flag is used to allow Stub generation even if WSDL endpoint URL is not a valid URL. |
java.lang.String |
deployScopeAdd scope to deploy.wsdd: - APPLICATION -> "Application", - REQUEST -> "Request", or - SESSION -> "Session". |
java.lang.String |
factoryUsed to extend the functionality of the WSDL2Java emitter. |
boolean |
generateAllClassesGenerate code for all elements, even unreferenced ones. |
boolean |
helperGenEmits separate Helper classes for meta data. |
java.lang.String |
implementationClassNameSet the name of the implementation class. |
boolean |
noImportsOnly generate code for the WSDL document that appears on the command line if this value is true. |
boolean |
noWrappedIf this value is true, it turns off the special treatment of what is called "wrapped" document/literal style operations. |
java.lang.String |
nsExclude |
java.lang.String |
nsIncludenamescape to specifically include in the generated code (defaults to all namespaces unless specifically excluded with the -x option) |
java.io.File |
outputDirectoryThe directory to generate the parser source files into. |
java.lang.String |
passwordThis password is used in resolving the WSDL-URI provided as the input to WSDL2Java. |
boolean |
serverSideEmit the server-side bindings for the web service: - a skeleton class named |
boolean |
skeletonDeployDeploy either the skeleton (true) or the implementation (false) in deploy.wsdd. |
int |
timeoutTimeout in seconds. |
java.lang.String |
typeMappingVersionIndicate 1.1 or 1.2. |
java.lang.String |
userNameThis username is used in resolving the WSDL-URI provided as the input to WSDL2Java. |
boolean |
wrapArraysWhen processing a schema like this: |
java.util.Map<java.lang.String, java.lang.String> |
wsdlProperties |
| Type | Name and description |
|---|---|
org.gradle.process.internal.JavaExecHandleBuilder |
prepareExec()Prepares the JavaExecHandlerBuilder for the task. |
| Methods inherited from class | Name |
|---|---|
class AbstractWSDL2Java |
addAttribute, addFlag, getFileResolver, getJavaOptions, prepareExec, run |
class org.gradle.api.DefaultTask |
org.gradle.api.DefaultTask#getIdentityPath(), org.gradle.api.DefaultTask#setGroup(java.lang.String), org.gradle.api.DefaultTask#getAnt(), org.gradle.api.DefaultTask#getConvention(), org.gradle.api.DefaultTask#getLogging(), org.gradle.api.DefaultTask#getLogging(), org.gradle.api.DefaultTask#getStandardOutputCapture(), org.gradle.api.DefaultTask#getAsDynamicObject(), org.gradle.api.DefaultTask#getOutputs(), org.gradle.api.DefaultTask#getOutputs(), org.gradle.api.DefaultTask#getDidWork(), org.gradle.api.DefaultTask#setDidWork(boolean), org.gradle.api.DefaultTask#getOnlyIf(), org.gradle.api.DefaultTask#getTaskActions(), org.gradle.api.DefaultTask#setActions(java.util.List), org.gradle.api.DefaultTask#getTaskDependencies(), org.gradle.api.DefaultTask#getTaskDependencies(), org.gradle.api.DefaultTask#getDependsOn(), org.gradle.api.DefaultTask#setDependsOn(java.lang.Iterable), org.gradle.api.DefaultTask#dependsOn([Ljava.lang.Object;), org.gradle.api.DefaultTask#onlyIf(groovy.lang.Closure), org.gradle.api.DefaultTask#onlyIf(org.gradle.api.specs.Spec), org.gradle.api.DefaultTask#setOnlyIf(groovy.lang.Closure), org.gradle.api.DefaultTask#setOnlyIf(org.gradle.api.specs.Spec), org.gradle.api.DefaultTask#doFirst(org.gradle.api.Action), org.gradle.api.DefaultTask#doFirst(groovy.lang.Closure), org.gradle.api.DefaultTask#doLast(org.gradle.api.Action), org.gradle.api.DefaultTask#doLast(groovy.lang.Closure), org.gradle.api.DefaultTask#deleteAllActions(), org.gradle.api.DefaultTask#getEnabled(), org.gradle.api.DefaultTask#dependsOnTaskDidWork(), org.gradle.api.DefaultTask#getTemporaryDir(), org.gradle.api.DefaultTask#mustRunAfter([Ljava.lang.Object;), org.gradle.api.DefaultTask#setMustRunAfter(java.lang.Iterable), org.gradle.api.DefaultTask#getMustRunAfter(), org.gradle.api.DefaultTask#finalizedBy([Ljava.lang.Object;), org.gradle.api.DefaultTask#setFinalizedBy(java.lang.Iterable), org.gradle.api.DefaultTask#getFinalizedBy(), org.gradle.api.DefaultTask#shouldRunAfter([Ljava.lang.Object;), org.gradle.api.DefaultTask#setShouldRunAfter(java.lang.Iterable), org.gradle.api.DefaultTask#getShouldRunAfter(), org.gradle.api.DefaultTask#getActionClassLoaders(), org.gradle.api.DefaultTask#getImpliesSubProjects(), org.gradle.api.DefaultTask#setImpliesSubProjects(boolean), org.gradle.api.DefaultTask#getExecuter(), org.gradle.api.DefaultTask#setExecuter(org.gradle.api.internal.tasks.TaskExecuter), org.gradle.api.DefaultTask#addValidator(org.gradle.api.internal.tasks.execution.TaskValidator), org.gradle.api.DefaultTask#getValidators(), org.gradle.api.DefaultTask#prependParallelSafeAction(org.gradle.api.Action), org.gradle.api.DefaultTask#appendParallelSafeAction(org.gradle.api.Action), org.gradle.api.DefaultTask#isHasCustomActions(), org.gradle.api.DefaultTask#injectIntoNewInstance(org.gradle.api.internal.project.ProjectInternal, java.lang.String, java.lang.Class, java.util.concurrent.Callable), org.gradle.api.DefaultTask#getTemporaryDirFactory(), org.gradle.api.DefaultTask#getLogger(), org.gradle.api.DefaultTask#leftShift(groovy.lang.Closure), org.gradle.api.DefaultTask#isEnabled(), org.gradle.api.DefaultTask#configure(groovy.lang.Closure), org.gradle.api.DefaultTask#configure(groovy.lang.Closure), org.gradle.api.DefaultTask#setEnabled(boolean), org.gradle.api.DefaultTask#property(java.lang.String), org.gradle.api.DefaultTask#hasProperty(java.lang.String), org.gradle.api.DefaultTask#getGroup(), org.gradle.api.DefaultTask#getDescription(), org.gradle.api.DefaultTask#getInputs(), org.gradle.api.DefaultTask#getInputs(), org.gradle.api.DefaultTask#setDescription(java.lang.String), org.gradle.api.DefaultTask#getProject(), org.gradle.api.DefaultTask#setProperty(java.lang.String, java.lang.Object), org.gradle.api.DefaultTask#toString(), org.gradle.api.DefaultTask#compareTo(java.lang.Object), org.gradle.api.DefaultTask#compareTo(org.gradle.api.Task), org.gradle.api.DefaultTask#getName(), org.gradle.api.DefaultTask#execute(), org.gradle.api.DefaultTask#getActions(), org.gradle.api.DefaultTask#getState(), org.gradle.api.DefaultTask#getState(), org.gradle.api.DefaultTask#getPath(), org.gradle.api.DefaultTask#getExtensions(), org.gradle.api.DefaultTask#wait(long, int), org.gradle.api.DefaultTask#wait(long), org.gradle.api.DefaultTask#wait(), org.gradle.api.DefaultTask#equals(java.lang.Object), org.gradle.api.DefaultTask#hashCode(), org.gradle.api.DefaultTask#getClass(), org.gradle.api.DefaultTask#notify(), org.gradle.api.DefaultTask#notifyAll() |
Additional arguments
This flag is used to allow Stub generation even if WSDL endpoint URL is not a valid URL. It's the responsibility of the user to update the endpoint value before using generated classes default=false
Add scope to deploy.wsdd: - APPLICATION -> "Application", - REQUEST -> "Request", or - SESSION -> "Session". If this option does not appear, no scope tag appears in deploy.wsdd, which the Axis runtime defaults to "Request".
Used to extend the functionality of the WSDL2Java emitter. The argument is the name of a class which extends JavaWriterFactory.
Generate code for all elements, even unreferenced ones. By default, WSDL2Java only generates code for those elements in the WSDL file that are referenced. A note about what it means to be referenced. We cannot simply say: start with the services, generate all bindings referenced by the service, generate all portTypes referenced by the referenced bindings, etc. What if we're generating code from a WSDL file that only contains portTypes, messages, and types? If WSDL2Java used service as an anchor, and there's no service in the file, then nothing will be generated. So the anchor is the lowest element that exists in the WSDL file in the order: - types - portTypes - bindings - services For example, if a WSDL file only contained types, then all the listed types would be generated. But if a WSDL file contained types and a portType, then that portType will be generated and only those types that are referenced by that portType. Note that the anchor is searched for in the WSDL file appearing on the command line, not in imported WSDL files. This allows one WSDL file to import constructs defined in another WSDL file without the nuisance of having all the imported WSDL file's constructs generated.
Emits separate Helper classes for meta data.
Set the name of the implementation class. Especially useful when exporting an existing class as a web service using java2wsdl followed by wsdl2java. If you are using the skeleton deploy option you must make sure, after generation, that your implementation class implements the port type name interface generated by wsdl2java. You should also make sure that all your exported methods throws java.lang.RemoteException.
Only generate code for the WSDL document that appears on the command line if this value is true. The default behaviour is to generate files for all WSDL documents, the immediate one and all imported ones.
If this value is true, it turns off the special treatment of what is called "wrapped" document/literal style operations. By default, WSDL2Java will recognize the following conditions: - If an input message has is a single part. - The part is an element. - The element has the same name as the operation - The element's complex type has no attributes If this value is true, WSDL2Java will 'unwrap' the top level element, and treat each of the components of the element as arguments to the operation. This type of WSDL is the default for Microsoft .NET web services, which wrap up RPC style arguments in this top level schema element.
namescape to specifically include in the generated code (defaults to all namespaces unless specifically excluded with the -x option)
The directory to generate the parser source files into.
This password is used in resolving the WSDL-URI provided as the input to WSDL2Java. If the URI contains a password, this will override the command line switch.
Emit the server-side bindings for the web service:
- a skeleton class named
Deploy either the skeleton (true) or the implementation (false) in deploy.wsdd. In other words, for "true" the service clause in the deploy.wsdd file will look something like:
and for "false" it would look like:...
If this configuration is used, serverSide is automatically set to true....
Timeout in seconds. The default is 240. Use -1 to disable the timeout.
Indicate 1.1 or 1.2. The default is 1.2 (SOAP 1.2 JAX-RPC compliant).
This username is used in resolving the WSDL-URI provided as the input to WSDL2Java. If the URI contains a username, this will override the command line switch. An example of a URL with a username and password is: http://user:password@hostname:port/path/to/service?WSDL
When processing a schema like this:
The default behavior (as of Axis 1.2 final) is to map this XML construct to a Java String array (String[]). If you would rather a specific JavaBean class (i.e. ArrayOfString) be generated for these types of schemas, you may specify the -w or --wrapArrays option.