Fork me on GitHub

axistools:java2wsdl

Full name:

org.codehaus.mojo:axistools-maven-plugin:1.5-SNAPSHOT:java2wsdl

Description:

A Plugin for generating WSDL files using Axis Java2WSDL.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: process-classes.

Required Parameters

Name Type Since Description
filename String - Indicates the name of the output WSDL file. Corresponds to the -o, --output option in the Java2WSDL command line tool, together with the outputDirectory parameter.
User property is: fileName.

Optional Parameters

Name Type Since Description
all boolean - Look for allowed methods in inherited class. Corresponds to the -a, --all option in the Java2WSDL command line tool.
bindingName String - Indicates the name to use for the binding element. If not specified, the value of the servicePortName + "SoapBinding" is used. Corresponds to the -b, --bindingName option in the Java2WSDL command line tool.
User property is: bindingName.
classOfPortType String - The class-of-portType.
User property is: classOfPortType.
classesDirectory File - The directory the compile objects will be located for java2wsdl to source from.
Default value is: ${project.build.outputDirectory}.
excludes ArrayList - List of methods not to export. Corresponds to the -x, --exclude option in the Java2WSDL command line tool.
User property is: exclude.
extraClasses ArrayList - Specify a list of class names which should be included in the types section of the WSDL document. This is useful in the case where your service interface references a base class and you would like your WSDL to contain XML Schema type definitions for these other classes. Corresponds to the -e, --extraClasses option in the Java2WSDL command line tool.
User property is: extraClasses.
implClass String - Sometimes extra information is available in the implementation class file. Use this option to specify the implementation class. Corresponds to the -i, --implClass option in the Java2WSDL command line tool.
User property is: implClass.
importSchema String - A file or URL to an XML Schema that should be physically imported into the generated WSDL. Corresponds to the -C, --importSchema option in the Java2WSDL command line tool.
User property is: importSchema.
input String - Optional parameter that indicates the name of the input wsdl file. The output wsdl file will contain everything from the input wsdl file plus the new constructs. If a new construct is already present in the input wsdl file, it is not added. This option is useful for constructing a wsdl file with multiple ports, bindings, or portTypes. Corresponds to the -I, --input option in the Java2WSDL command line tool.
User property is: input.
location String - Indicates the url of the location of the service. The name after the last slash or backslash is the name of the service port (unless overridden by the servicePortName option). The service port address location attribute is assigned the specified value. Corresponds to the -l, --location option in the Java2WSDL command line tool.
User property is: location.
locationImport String - Used to indicate the location of the interface WSDL when generating an implementation WSDL. Corresponds to the -L, --locationImport option in the Java2WSDL command line tool.
User property is: locationImport.
methods ArrayList - Methods to export. Corresponds to the -m, --methods option in the Java2WSDL command line tool.
User property is: methods.
namespace String - Indicates the name of the target namespace of the WSDL. Corresponds to the -n, --namespace option in the Java2WSDL command line tool.
User property is: namespace.
namespaceImpl String - Namespace of the implementation WSDL. Corresponds to the -N, --namespaceImpl option in the Java2WSDL command line tool.
User property is: namespaceImpl.
outputDirectory File - Directory for generated content. Corresponds to the -o, --output option in the Java2WSDL command line tool, together with the filename parameter.
Default value is: ${project.build.directory}/generated-sources/axistools/java2wsdl.
outputImpl String - Use this option to indicate the name of the output implementation WSDL file. If specified, Java2WSDL will produce interface and implementation WSDL files. If this option is used, the outputWSDLMode option is ignored. Corresponds to the -O, --outputImpl option in the Java2WSDL command line tool.
User property is: outputImpl.
outputWSDLMode String - Indicates the kind of WSDL to generate. Accepted values are:
  • All --- (default) Generates wsdl containing both interface and implementation WSDL constructs.
  • Interface --- Generates a WSDL containing the interface constructs (no service element).
  • Implementation -- Generates a WSDL containing the implementation. The interface WSDL is imported via the locationImport option.
Corresponds to the -w, --outputWsdlMode option in the Java2WSDL command line tool.
User property is: outputWSDLMode.
packageToNamespace String - Package=namespace, name value pair. The plugin currently only supports one name value pair. Corresponds to the -p, --PkgtoNS option in the Java2WSDL command line tool.
User property is: packageToNamespace.
portTypeName String - Indicates the name to use for the portType element. If not specified, the classOfPortType name is used. Corresponds to the -P, --portTypeName option in the Java2WSDL command line tool.
User property is: portTypeName.
serviceElementName String - Service element name (defaults to servicePortName value + "Service"). Corresponds to the -S, --serviceElementName option in the Java2WSDL command line tool.
User property is: serviceElementName.
servicePortName String - Indicates the name of the service port. If not specified, the service port name is derived from the location value. Corresponds to the -s, --servicePortName option in the Java2WSDL command line tool.
User property is: servicePortName.
soapAction String - The value of the operations soapAction field. Values are DEFAULT, OPERATION or NONE. OPERATION forces soapAction to the name of the operation. DEFAULT causes the soapAction to be set according to the operation's meta data (usually ""). NONE forces the soapAction to "". The default is DEFAULT. Corresponds to the -A, --soapAction option in the Java2WSDL command line tool.
User property is: soapAction.
stopClasses ArrayList - List of classes which stop the Java2WSDL inheritance search. Corresponds to the -c, --stopClasses option in the Java2WSDL command line tool.
User property is: stopClasses.
style String - The style of the WSDL document: RPC, DOCUMENT or WRAPPED. The default is RPC. If RPC is specified, an rpc wsdl is generated. If DOCUMENT is specified, a document wsdl is generated. If WRAPPED is specified, a document/literal wsdl is generated using the wrapped approach. Wrapped style forces the use attribute to be literal. Corresponds to the -y, --style option in the Java2WSDL command line tool.
User property is: style.
typeMappingVersion String - Choose the default type mapping registry to use. Either 1.1 or 1.2. Corresponds to the -T, --typeMappingVersion option in the Java2WSDL command line tool.
User property is: typeMappingVersion.
use String - The use of the WSDL document: LITERAL or ENCODED. If LITERAL is specified, the XML Schema defines the representation of the XML for the request. If ENCODED is specified, SOAP encoding is specified in the generated WSDL. Corresponds to the -u, --use option in the Java2WSDL command line tool.
User property is: use.

Parameter Details

all:

Look for allowed methods in inherited class. Corresponds to the -a, --all option in the Java2WSDL command line tool.
  • Type: boolean
  • Required: No
  • Expression: false

bindingName:

Indicates the name to use for the binding element. If not specified, the value of the servicePortName + "SoapBinding" is used. Corresponds to the -b, --bindingName option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: bindingName

classOfPortType:

The class-of-portType.
  • Type: java.lang.String
  • Required: No
  • User Property: classOfPortType

classesDirectory:

The directory the compile objects will be located for java2wsdl to source from.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

excludes:

List of methods not to export. Corresponds to the -x, --exclude option in the Java2WSDL command line tool.
  • Type: java.util.ArrayList
  • Required: No
  • User Property: exclude

extraClasses:

Specify a list of class names which should be included in the types section of the WSDL document. This is useful in the case where your service interface references a base class and you would like your WSDL to contain XML Schema type definitions for these other classes. Corresponds to the -e, --extraClasses option in the Java2WSDL command line tool.
  • Type: java.util.ArrayList
  • Required: No
  • User Property: extraClasses

filename:

Indicates the name of the output WSDL file. Corresponds to the -o, --output option in the Java2WSDL command line tool, together with the outputDirectory parameter.
  • Type: java.lang.String
  • Required: Yes
  • User Property: fileName

implClass:

Sometimes extra information is available in the implementation class file. Use this option to specify the implementation class. Corresponds to the -i, --implClass option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: implClass

importSchema:

A file or URL to an XML Schema that should be physically imported into the generated WSDL. Corresponds to the -C, --importSchema option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: importSchema

input:

Optional parameter that indicates the name of the input wsdl file. The output wsdl file will contain everything from the input wsdl file plus the new constructs. If a new construct is already present in the input wsdl file, it is not added. This option is useful for constructing a wsdl file with multiple ports, bindings, or portTypes. Corresponds to the -I, --input option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: input

location:

Indicates the url of the location of the service. The name after the last slash or backslash is the name of the service port (unless overridden by the servicePortName option). The service port address location attribute is assigned the specified value. Corresponds to the -l, --location option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: location

locationImport:

Used to indicate the location of the interface WSDL when generating an implementation WSDL. Corresponds to the -L, --locationImport option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: locationImport

methods:

Methods to export. Corresponds to the -m, --methods option in the Java2WSDL command line tool.
  • Type: java.util.ArrayList
  • Required: No
  • User Property: methods

namespace:

Indicates the name of the target namespace of the WSDL. Corresponds to the -n, --namespace option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: namespace

namespaceImpl:

Namespace of the implementation WSDL. Corresponds to the -N, --namespaceImpl option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: namespaceImpl

outputDirectory:

Directory for generated content. Corresponds to the -o, --output option in the Java2WSDL command line tool, together with the filename parameter.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/generated-sources/axistools/java2wsdl

outputImpl:

Use this option to indicate the name of the output implementation WSDL file. If specified, Java2WSDL will produce interface and implementation WSDL files. If this option is used, the outputWSDLMode option is ignored. Corresponds to the -O, --outputImpl option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: outputImpl

outputWSDLMode:

Indicates the kind of WSDL to generate. Accepted values are:
  • All --- (default) Generates wsdl containing both interface and implementation WSDL constructs.
  • Interface --- Generates a WSDL containing the interface constructs (no service element).
  • Implementation -- Generates a WSDL containing the implementation. The interface WSDL is imported via the locationImport option.
Corresponds to the -w, --outputWsdlMode option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: outputWSDLMode

packageToNamespace:

Package=namespace, name value pair. The plugin currently only supports one name value pair. Corresponds to the -p, --PkgtoNS option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: packageToNamespace

portTypeName:

Indicates the name to use for the portType element. If not specified, the classOfPortType name is used. Corresponds to the -P, --portTypeName option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: portTypeName

serviceElementName:

Service element name (defaults to servicePortName value + "Service"). Corresponds to the -S, --serviceElementName option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: serviceElementName

servicePortName:

Indicates the name of the service port. If not specified, the service port name is derived from the location value. Corresponds to the -s, --servicePortName option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: servicePortName

soapAction:

The value of the operations soapAction field. Values are DEFAULT, OPERATION or NONE. OPERATION forces soapAction to the name of the operation. DEFAULT causes the soapAction to be set according to the operation's meta data (usually ""). NONE forces the soapAction to "". The default is DEFAULT. Corresponds to the -A, --soapAction option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: soapAction

stopClasses:

List of classes which stop the Java2WSDL inheritance search. Corresponds to the -c, --stopClasses option in the Java2WSDL command line tool.
  • Type: java.util.ArrayList
  • Required: No
  • User Property: stopClasses

style:

The style of the WSDL document: RPC, DOCUMENT or WRAPPED. The default is RPC. If RPC is specified, an rpc wsdl is generated. If DOCUMENT is specified, a document wsdl is generated. If WRAPPED is specified, a document/literal wsdl is generated using the wrapped approach. Wrapped style forces the use attribute to be literal. Corresponds to the -y, --style option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: style

typeMappingVersion:

Choose the default type mapping registry to use. Either 1.1 or 1.2. Corresponds to the -T, --typeMappingVersion option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: typeMappingVersion

use:

The use of the WSDL document: LITERAL or ENCODED. If LITERAL is specified, the XML Schema defines the representation of the XML for the request. If ENCODED is specified, SOAP encoding is specified in the generated WSDL. Corresponds to the -u, --use option in the Java2WSDL command line tool.
  • Type: java.lang.String
  • Required: No
  • User Property: use