<plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>version</version> <executions> <execution> <id>generate-sources</id> <configuration> <defaultOptions> <option>...</option> ... </defaultOptions> <wsdlOptions> <wsdlOption> <wsdl>wsdlPath</wsdl> <option>...</option> ... </wsdlOption> ... </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin>
wsdl2javatask takes a WSDL document and generates fully annotated Java code from which to implement a service. The WSDL document must have a valid
portTypeelement, but it does not need to contain a
bindingelement or a
serviceelement. Using the optional arguments you can customize the generated code.
wsdlOptionselement is required to configure the plug-in. The
wsdlchild is required and specifies a WSDL document to be processed by the plug-in. In addition to the
wsdlOptionselement can take a number of children that can customize how the WSDL document is processed.
wsdlOptionselement can be listed in the plug-in configuration. Each element configures a single WSDL document for processing.
defaultOptionselement is an optional element. It can be used to set options that are used across all of the specified WSDL documents.
wsdlOptionselement, the value in the
wsdlOptionselement takes precedent.
|Displays the online help for this utility.|
|Specifies the front end used by the code generator. Possible values are |
|Specifies the data binding used by the code generator. Possible values are: |
|Specifies the WSDL version expected by the tool. Default is |
|Specifies zero, or more, package names to use for the generated code. Optionally specifies the WSDL namespace to package name mapping.|
|Specifies zero, or more, JAXWS or JAXB binding files. Use spaces to separate multiple entries.|
|Specifies the name of the WSDL service for which code is to be generated. The default is to generate code for every service in the WSDL document.|
|Specifies the directory into which the generated code files are written.|
|Specifies the URL of an XML catalog to use for resolving imported schemas and WSDL documents.|
|Compiles generated Java files.|
|Specifies the directory into which the compiled class files are written.|
|Generates starting point code for a client mainline.|
Generates the JAR file that contains all the client classes and the WSDL. The specified
|Generates starting point code for a server mainline.|
|Generates starting point code for an implementation object.|
|Generates all starting point code: types, service proxy, service interface, server mainline, client mainline, implementation object, and an Ant |
|Generates the Ant |
Automatically resolve naming conflicts without requiring the use of binding customizations.
|Instructs the tool to not overwrite any existing files.|
|Instructs the tool to generate default values for the generated client and the generated implementation. Optionally, you can also supply the name of the class used to generate the default values. By default, the |
|Ignore the specified WSDL schema namespace when generating code. This option may be specified multiple times. Also, optionally specifies the Java package name used by types described in the excluded namespace(s).|
|Enables or disables processing of extended soap header message binding. Default is |
|Enables or disables the loading of the default namespace package name mapping. Default is |
|Enables or disables the loading of the default excludes namespace mapping. Default is |
|Specifies the value of the |
|Specifies a comma separated list of arguments to be passed to directly to the XJC when the JAXB data binding is being used. To get a list of all possible XJC arguments use the |
|Instructs the tool to use the Apache CXF proprietary WS-Addressing type instead of the JAX-WS 2.1 compliant mapping.|
|Instructs the tool to validate the WSDL document before attempting to generate any code.|
|Displays the version number for the tool.|
|Displays comments during the code generation process.|
|Suppresses comments during the code generation process.|
Superclass for fault beans generated from
List of subsequently generated Java class methods to allow for client-side asynchronous calls; similar to
List of subsequently generated Java class methods to have wrapper style (see below), similar to
List of subsequently generated Java class methods to enable mime:content mapping, similar to
How to generate suid of fault exceptions. Possible values are:
Adds the @Generated annotation to the generated classes.
|wsdlfile||The path and name of the WSDL file to use in generating the code.|
[a] Currently, Apache CXF only provides WSDL 1.1 support for the code generator.