Interface CxfBuildTimeConfig.Wsdl2JavaParameterSet
- Enclosing interface:
- CxfBuildTimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionA comma separated list of additional command line parameters that should be passed to CXFwsdl2javatool along with the files selected byincludes()andexcludes().A comma separated list of SEI methods for which asynchronous sibling methods should be generated; similar toenableAsyncMappingin a JAX-WS binding fileA comma separated list of SEI methods for which wrapper style sibling methods should be generated; similar toenableWrapperStylein JAX-WS binding filebindings()A list of paths pointing at JAXWS or JAXB binding files or XMLBeans context files.A fully qualified class name to use as a superclass for fault beans generated fromwsdl:faultelementsA comma separated list of WSDL schema namespace URIs to ignore when generating Java code.excludes()A comma separated list of path patterns for selecting WSDL files which should not be processed withwsdl2javatool.includes()A comma separated list of glob patterns for selecting WSDL files which should be processed withwsdl2javatool.A comma separated list of SEI methods for whichmime:contentmapping should be enabled; similar toenableMIMEContentin JAX-WS binding fileA directory into which the generated files will be written, either absolute or relative to the current Maven or Gradle module directory.A comma separated list of tokens; each token can be one of the following: A Java package under which the Java source files should be generated A string of the formnamespaceURI=packageName- in this case the entities coming from the given namespace URI will be generated under the given Java package.The WSDL service name to use for the generated code.booleanvalidate()Iftrue, WSDLs are validated before processing; otherwise the WSDLs are not validated.Specifies the value of the@WebServiceClientannotation's wsdlLocation property.xjc()A comma separated list of XJC extensions to enable.
-
Method Details
-
includes
A comma separated list of glob patterns for selecting WSDL files which should be processed withwsdl2javatool. The paths are relative tosrc/main/resourcesorsrc/test/resourcesdirectories of the current Maven or Gradle module. The glob syntax is specified inio.quarkus.util.GlobUtil.Examples:
calculator.wsdl,fruits.wsdlwill matchsrc/main/resources/calculator.wsdlandsrc/main/resources/fruits.wsdlunder the current Maven or Gradle module, but will not match anything likesrc/main/resources/subdir/calculator.wsdlmy-*-service.wsdlwill matchsrc/main/resources/my-foo-service.wsdlandsrc/main/resources/my-bar-service.wsdl**.wsdlwill match any of the above
wsdl2javaexecution for each of the matching WSDL files. If you need differentadditionalParams()for each WSDL file, you may want to define a separate named parameter set for each one of them. Here is an example:# Parameters for foo.wsdl quarkus.cxf.codegen.wsdl2java.foo-params.includes = wsdl/foo.wsdl quarkus.cxf.codegen.wsdl2java.foo-params.wsdl-location = wsdl/foo.wsdl # Parameters for bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.includes = wsdl/bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.wsdl-location = wsdl/bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.xjc = ts
Note that file extensions other than
.wsdlwill work during normal builds, but changes in the matching files may get overseen in Quarkus dev mode. Always using the.wsdlextension is thus recommended.There is no default value for this option, so
wsdl2javacode generation is disabled by default.Specifying
quarkus.cxf.codegen.wsdl2java.my-name.excludeswithout setting anyincludeswill cause a build time error.Make sure that the file sets selected by
quarkus.cxf.codegen.wsdl2java.includesandquarkus.cxf.codegen.wsdl2java.[whatever-name].includesdo not overlap. Otherwise a build time exception will be thrown.The files from
src/main/resourcesselected byincludesandexcludesare automatically included in native image and therefore you do not need to include them viaquarkus.cxf.wsdl-path(deprecated) orquarkus.native.resources.includes/excludes. -
excludes
A comma separated list of path patterns for selecting WSDL files which should not be processed withwsdl2javatool. The paths are relative tosrc/main/resourcesorsrc/test/resourcesdirectories of the current Maven or Gradle module. Same syntax asincludes. -
outputDirectory
A directory into which the generated files will be written, either absolute or relative to the current Maven or Gradle module directory.The default value is build tool dependent: for Maven, it is typically
target/generated-sources/wsdl2java, while for Gradle it isbuild/classes/java/quarkus-generated-sources/wsdl2java.Quarkus tooling is only able to set up the default value as a source folder for the given build tool. If you set this to a custom path it is up to you to make sure that your build tool recognizes the path a as source folder.
Also, if you choose a path outside
targetdirectory for Maven or outsidebuilddirectory for Gradle, you need to take care for cleaning stale resources generated by previous builds. E.g. if you change the value ofpackage-namesoption fromorg.footoorg.baryou need to take care for the removal of the removal of the old packageorg.foo.This will be passed as option
-dtowsdl2java- Since:
- 2.6.0
-
packageNames
A comma separated list of tokens; each token can be one of the following:- A Java package under which the Java source files should be generated
- A string of the form
namespaceURI=packageName- in this case the entities coming from the given namespace URI will be generated under the given Java package.
This will be passed as option
-ptowsdl2java -
excludeNamespaceUris
A comma separated list of WSDL schema namespace URIs to ignore when generating Java code.This will be passed as option
-nexcludetowsdl2java -
serviceName
The WSDL service name to use for the generated code.This will be passed as option
-sntowsdl2java -
bindings
A list of paths pointing at JAXWS or JAXB binding files or XMLBeans context files. The path to be either absolute or relative to the current Maven or Gradle module.This will be passed as option
-btowsdl2java -
validate
@WithDefault("false") boolean validate()Iftrue, WSDLs are validated before processing; otherwise the WSDLs are not validated.This will be passed as option
-validatetowsdl2java -
wsdlLocation
Specifies the value of the@WebServiceClientannotation's wsdlLocation property.This will be passed as option
-wsdlLocationtowsdl2java -
xjc
A comma separated list of XJC extensions to enable. The following extensions are available throughio.quarkiverse.cxf:quarkus-cxf-xjc-pluginsdependency:bg- generategetX()methods for boolean fields instead ofisX()bgi- generate bothisX()andgetX()methods for boolean fieldsdv- initialize fields mapped from elements/attributes with their default valuesjavadoc- generates JavaDoc based onxsd:documentationproperty-listener- add a property listener and the code for triggering the property change events to setter methodsts- generatetoString()methodswsdlextension- generate WSDL extension methods in root classes
These values correspond to
-wsdl2javaoptions-xjc-Xbg,-xjc-Xbgi,-xjc-Xdv,-xjc-Xjavadoc,-xjc-Xproperty-listener,-xjc-Xtsand-xjc-Xwsdlextensionrespectively. -
exceptionSuper
A fully qualified class name to use as a superclass for fault beans generated fromwsdl:faultelementsThis will be passed as option
-exceptionSupertowsdl2java -
asyncMethods
A comma separated list of SEI methods for which asynchronous sibling methods should be generated; similar toenableAsyncMappingin a JAX-WS binding fileThis will be passed as option
-asyncMethodstowsdl2java -
bareMethods
A comma separated list of SEI methods for which wrapper style sibling methods should be generated; similar toenableWrapperStylein JAX-WS binding fileThis will be passed as option
-bareMethodstowsdl2java -
mimeMethods
A comma separated list of SEI methods for whichmime:contentmapping should be enabled; similar toenableMIMEContentin JAX-WS binding fileThis will be passed as option
-mimeMethodstowsdl2java -
additionalParams
A comma separated list of additional command line parameters that should be passed to CXFwsdl2javatool along with the files selected byincludes()andexcludes(). Example:-keep,-dex,false. Checkwsdl2javadocumentation for all supported options.
-