was6:wsdl2java

Full name:

org.codehaus.mojo:was6-maven-plugin:1.2.1:wsdl2java

Description:

Creates Java classes and deployment descriptor templates from a Web Services Description Language (WSDL) file.

See Developerworks article for background.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Since version: 1.2.
  • Binds by default to the lifecycle phase: generate-resources.

Required Parameters

Name Type Since Description
output File 1.2 Where to place the generated resources.
Default value is: ${project.build.directory}/generated-resources/was6-maven-plugin/wsdl2java.
wasHome File 1.2 Root install location of WebSphere 6.1
Default value is: ${env.WAS_HOME}.
workingDirectory File 1.2 Working directory for plugin.
wsdlFile File 1.2 The WSDL file.

Optional Parameters

Name Type Since Description
container String 1.2 Undocumented by IBM. Among valid values are "EJB".
deployScope String 1.2 IBM hasn't documented this AFAIK.
doNotWrapArrays Boolean 1.2 Do not wrap arrays.
Default value is: false.
doNotWrapOperations Boolean 1.2 Do not wrap Operations.
Default value is: false.
excludes List 1.2 What to exclude from the generated resources.
failOnError boolean 1.2 Fail build on errors.
Default value is: true.
generateHashCodeEquals Boolean 1.2 Enable the hashcode/equal generation.
Default value is: true.
generateJavaCode String 1.2 The genJava option. Allowed values: "No", "IfNotExists" (default), or "Overwrite"
Default value is: IfNotExists.
generateResolver Boolean 1.2 Set the resolver to use.
generateXml String 1.2 Undocumented by IBM
implementSerializable Boolean 1.2 Have generated beans implement java.io.Serializable.
Default value is: true.
includes List 1.2 What to include of the generated resources.
inputMappingFile File 1.2 Input mapping file.
logFile File 1.2 Optional log file to log execution of ws_ant to.
noDataBinding Boolean 1.2 Setter for noDataBinding Force everything to be mapped to a generic object (i.e. SOAPElement).
Default value is: true.
nsToPkgMappingFile File 1.2 Set the NStoPkg mappings filename.
retryCount int 1.2 Some operations can often fail due to internal errors in the J2EE EJB deployment stage. Aditionally, the WsAdmin mojo can equally fail due to connection issues. These errors are intermittent and suprious. Simply reruning it will often fix the error (assuming there is no real underlying error). Issues arise however, if this occurs in a release - the release will be unnecessarilly aborted. This variable is designed to allow a number of retries to avoid this issue.
Default value is: 0.
role String 1.2 The J2EE development role that identifies which files to generate. Among valid values are "develop-server".
scenario String 1.2 Set the scenario option used with genJava. Specifies how to refine generation behaviour. Allowed values: "normal" to get default behaviour, "wrdTopDown" to get WRD-specific action.
Default value is: normal.
skip boolean 1.1.1 Skip execution.
Default value is: false.
traceFile File 1.2 Optional file to log trace to.
useFiltering boolean 1.2 Set to true to filter the generated resources
Default value is: false.
verbose boolean 1.2 Specifies a verbose execution to help debug.
Default value is: false.

Parameter Details

container:

Undocumented by IBM. Among valid values are "EJB".
  • Type: java.lang.String
  • Since: 1.2
  • Required: No

deployScope:

IBM hasn't documented this AFAIK.
  • Type: java.lang.String
  • Since: 1.2
  • Required: No

doNotWrapArrays:

Do not wrap arrays.
  • Type: java.lang.Boolean
  • Since: 1.2
  • Required: No
  • Default: false

doNotWrapOperations:

Do not wrap Operations.
  • Type: java.lang.Boolean
  • Since: 1.2
  • Required: No
  • Default: false

excludes:

What to exclude from the generated resources.
  • Type: java.util.List
  • Since: 1.2
  • Required: No

failOnError:

Fail build on errors.
  • Type: boolean
  • Since: 1.2
  • Required: No
  • Expression: ${was6.failOnError}
  • Default: true

generateHashCodeEquals:

Enable the hashcode/equal generation.
  • Type: java.lang.Boolean
  • Since: 1.2
  • Required: No
  • Default: true

generateJavaCode:

The genJava option. Allowed values: "No", "IfNotExists" (default), or "Overwrite"
  • Type: java.lang.String
  • Since: 1.2
  • Required: No
  • Default: IfNotExists

generateResolver:

Set the resolver to use.
  • Type: java.lang.Boolean
  • Since: 1.2
  • Required: No

generateXml:

Undocumented by IBM
  • Type: java.lang.String
  • Since: 1.2
  • Required: No

implementSerializable:

Have generated beans implement java.io.Serializable.
  • Type: java.lang.Boolean
  • Since: 1.2
  • Required: No
  • Default: true

includes:

What to include of the generated resources.
  • Type: java.util.List
  • Since: 1.2
  • Required: No

inputMappingFile:

Input mapping file.
  • Type: java.io.File
  • Since: 1.2
  • Required: No

logFile:

Optional log file to log execution of ws_ant to.
  • Type: java.io.File
  • Since: 1.2
  • Required: No
  • Expression: ${was6.logFile}

noDataBinding:

Setter for noDataBinding Force everything to be mapped to a generic object (i.e. SOAPElement).
  • Type: java.lang.Boolean
  • Since: 1.2
  • Required: No
  • Default: true

nsToPkgMappingFile:

Set the NStoPkg mappings filename.
  • Type: java.io.File
  • Since: 1.2
  • Required: No

output:

Where to place the generated resources.
  • Type: java.io.File
  • Since: 1.2
  • Required: Yes
  • Default: ${project.build.directory}/generated-resources/was6-maven-plugin/wsdl2java

retryCount:

Some operations can often fail due to internal errors in the J2EE EJB deployment stage. Aditionally, the WsAdmin mojo can equally fail due to connection issues. These errors are intermittent and suprious. Simply reruning it will often fix the error (assuming there is no real underlying error). Issues arise however, if this occurs in a release - the release will be unnecessarilly aborted. This variable is designed to allow a number of retries to avoid this issue.
  • Type: int
  • Since: 1.2
  • Required: No
  • Expression: ${was6.retryCount}
  • Default: 0

role:

The J2EE development role that identifies which files to generate. Among valid values are "develop-server".
  • Type: java.lang.String
  • Since: 1.2
  • Required: No

scenario:

Set the scenario option used with genJava. Specifies how to refine generation behaviour. Allowed values: "normal" to get default behaviour, "wrdTopDown" to get WRD-specific action.
  • Type: java.lang.String
  • Since: 1.2
  • Required: No
  • Default: normal

skip:

Skip execution.
  • Type: boolean
  • Since: 1.1.1
  • Required: No
  • Expression: ${was6.skip}
  • Default: false

traceFile:

Optional file to log trace to.
  • Type: java.io.File
  • Since: 1.2
  • Required: No
  • Expression: ${was6.traceFile}

useFiltering:

Set to true to filter the generated resources
  • Type: boolean
  • Since: 1.2
  • Required: No
  • Default: false

verbose:

Specifies a verbose execution to help debug.
  • Type: boolean
  • Since: 1.2
  • Required: No
  • Expression: ${was6.verbose}
  • Default: false

wasHome:

Root install location of WebSphere 6.1
  • Type: java.io.File
  • Since: 1.2
  • Required: Yes
  • Expression: ${was6.wasHome}
  • Default: ${env.WAS_HOME}

workingDirectory:

Working directory for plugin.
  • Type: java.io.File
  • Since: 1.2
  • Required: Yes
  • Expression: ${project.build.directory}/was6-maven-plugin

wsdlFile:

The WSDL file.
  • Type: java.io.File
  • Since: 1.2
  • Required: Yes