Class Wsdl2JavaOptions
wsdl2java tool.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionEnables or disables disregarding the rule given in section 2.3.1.2(v) of the JAX-WS 2.2 specification disallowing element references when using wrapper-style mapping.abstract ListProperty<String>Specifies subsequently generated Java class methods to allow for client-side asynchronous calls, similar toenableAsyncMappingin a JAX-WS binding file.Enables or disables automatically resolving naming conflicts without requiring the use of binding customizations.abstract ListProperty<String>Specifies subsequently generated Java class methods to have wrapper style, similar toenableWrapperStylein JAX-WS binding file.abstract SetProperty<String>Specifies JAX-WS or JAXB binding files or XMLBeans context files.Specify catalog file to map the imported WSDL/schema.Specifies the databinding.Enables or disables the loading of the default excludes namespace mapping.Enables or disables the loading of the default namespace package name mapping.Encoding to use for generated sources (since CXF version 2.5.4).Specifies the superclass for fault beans generated fromwsdl:faultelementsEnables or disables processing of implicit SOAP headers (i.e.abstract ListProperty<String>Specifies extra arguments to pass to the command-line code generator.Specifies how to generate serial version UID of fault exceptions.Specifies the frontend.Enables or disables adding the@Generatedannotation to classes generated.abstract ListProperty<String>Specifies subsequently generated Java class methods to enable mime:content mapping, similar toenableMIMEContentin JAX-WS binding file.abstract ListProperty<String>Ignore the specified WSDL schema namespace when generating code.For compatibility with CXF 2.0, this flag directs the code generator to generate the older CXF proprietary WS-Addressing types instead of the JAX-WS 2.1 compliant WS-Addressing types.Enables or disables generation of the type classes.abstract DirectoryPropertySpecifies the directory the generated code files are written.abstract ListProperty<String>Specifies zero, or more, package names to use for the generated code.abstract ListProperty<String>Specifies the superinterfaces to use for generated SEIs.Specifies the WSDL service name to use for the generated code.Enables or disables writing the current timestamp in the generated file (since CXF version 3.2.2).Enables validating the WSDL before generating the code.Enables or disables verbosity.getWsdl()WSDL to process.Specifies that thewsdlurlcontains a plain text, new line delimited, list ofwsdlurls instead of the WSDL itself.Specifies the value of the@WebServiceClientannotation'swsdlLocationproperty.Specifies the WSDL version.abstract ListProperty<String>Specifies arguments that are passed directly to the XJC processor when using the JAXB data binding.
- 
Constructor Details- 
Wsdl2JavaOptionspublic Wsdl2JavaOptions()
 
- 
- 
Method Details- 
getWsdlWSDL to process. The value can either be a direct path to a file on a local system or URL to a remote file.- Returns:
- wsdl file
 
- 
getOutputDirSpecifies the directory the generated code files are written.If not set, the convention is "$buildDir/$taskName-wsdl2java-generated-sources"- Returns:
- output directory
 
- 
getPackageNamesSpecifies zero, or more, package names to use for the generated code.Optionally specifies the WSDL namespace to package name mapping. - Returns:
- package names
 
- 
getExtraArgsSpecifies extra arguments to pass to the command-line code generator.- Returns:
- extra arguments
 
- 
getXjcArgsSpecifies arguments that are passed directly to the XJC processor when using the JAXB data binding.- Returns:
- xjc arguments
 
- 
getAsyncMethodsSpecifies subsequently generated Java class methods to allow for client-side asynchronous calls, similar toenableAsyncMappingin a JAX-WS binding file.- Returns:
- async methods
 
- 
getBareMethodsSpecifies subsequently generated Java class methods to have wrapper style, similar toenableWrapperStylein JAX-WS binding file.- Returns:
- bare methods
 
- 
getMimeMethodsSpecifies subsequently generated Java class methods to enable mime:content mapping, similar toenableMIMEContentin JAX-WS binding file.- Returns:
- mime methods
 
- 
getNamespaceExcludesIgnore the specified WSDL schema namespace when generating code.Optionally specifies the Java package name used by types described in the excluded namespace(s) using schema-namespace[=java-packagename] - Returns:
- namespace excludes
 
- 
getDefaultExcludesNamespaceEnables or disables the loading of the default excludes namespace mapping.If not set, wsdl2javadefaults totrue.- Returns:
- default excludes namespace indicator
 
- 
getDefaultNamespacePackageMappingEnables or disables the loading of the default namespace package name mapping.If not set, wsdl2javadefaults totrueand http://www.w3.org/2005/08/addressing package mapping will be enabled.- Returns:
- default namespace package mapping indicator
 
- 
getBindingFilesSpecifies JAX-WS or JAXB binding files or XMLBeans context files.The values are evaluated as per Directory.file(String)fromProjectLayout.getProjectDirectory()- Returns:
- binding files
 
- 
getWsdlLocationSpecifies the value of the@WebServiceClientannotation'swsdlLocationproperty.By default, the wsdl2javatool will use the value of#getWsdlUrl(). This may lead to runtime issues such asFileNotFoundExceptionbeing thrown. Consider setting this value to a location that your application understands. For example (Kotlin DSL), a classpath location:tasks.register("example", Wsdl2Java::class) { toolOptions { wsdlUrl.set(layout.projectDirectory.file("src/main/resources/wsdl/example.wsdl").asFile.absolutePath) wsdlLocation.set("classpath:wsdl/example.wsdl") } }- Returns:
- wsdl location
 
- 
getWsdlListSpecifies that thewsdlurlcontains a plain text, new line delimited, list ofwsdlurls instead of the WSDL itself.- Returns:
- wsdl list flag
 
- 
getFrontendSpecifies the frontend. Currently only supports JAX-WS CXF frontends and ajaxws21frontend to generate JAX-WS 2.1 compliant code.If not set, wsdl2javadefaults tojaxws- Returns:
- frontend
 
- 
getDatabindingSpecifies the databinding. Currently supports JAXB, XMLBeans, SDO (sdo-static * and sdo-dynamic), and JiBX.If not set, wsdl2javadefaults tojaxb- Returns:
- databinding
 
- 
getWsdlVersionSpecifies the WSDL version.If not set, wsdl2javadefaults toWSDL1.1; currently supports only WSDL1.1 version.- Returns:
- wsdl version
 
- 
getCatalogSpecify catalog file to map the imported WSDL/schema.- Returns:
- catalog
 
- 
getExtendedSoapHeadersEnables or disables processing of implicit SOAP headers (i.e. SOAP headers defined in thewsdl:binding, but notwsdl:portTypesection.)Processing the SOAP headers requires the SOAP binding JARs available on the classpath which was not the default in CXF 2.4.x and older. You may need to add a dependency to cxf-rt-binding-soapfor this flag to work.If not set, wsdl2javadefaults tofalse.- Returns:
- extended SOAP headers indicator
 
- 
getValidateWsdlEnables validating the WSDL before generating the code.- Returns:
- validate WSDL
 
- 
getNoTypesEnables or disables generation of the type classes.If not set, wsdl2javadefaults tofalse.- Returns:
- no types indicator
 
- 
getFaultSerialVersionUidSpecifies how to generate serial version UID of fault exceptions.Use one of the following: - NONE
- TIMESTAMP
- FQCN
- a specific number
 If not set, wsdl2javadefaults toNONE.- Returns:
- fault serial version UID
 
- 
getExceptionSuperSpecifies the superclass for fault beans generated fromwsdl:faultelementsIf not set, wsdl2javadefaults toException.- Returns:
- exception superclass
 
- 
getSeiSuperSpecifies the superinterfaces to use for generated SEIs.- Returns:
- super interfaces
 
- 
getMarkGeneratedEnables or disables adding the@Generatedannotation to classes generated.- Returns:
- mark generated indicator
 
- 
getSuppressGeneratedDateEnables or disables writing the current timestamp in the generated file (since CXF version 3.2.2).- Returns:
- suppress generated date indicator
 
- 
getServiceNameSpecifies the WSDL service name to use for the generated code.- Returns:
- service name
 
- 
getAutoNameResolutionEnables or disables automatically resolving naming conflicts without requiring the use of binding customizations.- Returns:
- auto name resolution indicator
 
- 
getNoAddressBindingFor compatibility with CXF 2.0, this flag directs the code generator to generate the older CXF proprietary WS-Addressing types instead of the JAX-WS 2.1 compliant WS-Addressing types.- Returns:
- no address binding indicator
 
- 
getAllowElementRefsEnables or disables disregarding the rule given in section 2.3.1.2(v) of the JAX-WS 2.2 specification disallowing element references when using wrapper-style mapping.- Returns:
- allow element references indicator
 
- 
getEncodingEncoding to use for generated sources (since CXF version 2.5.4).- Returns:
- encoding
 
- 
getVerboseEnables or disables verbosity.- Returns:
- verbosity indicator
 
 
-