LibraryToggle FramesPrintFeedback

Name

wsdl2java — generates JAX-WS compliant Java code from a WSDL document

Synopsis

wsdl2java [[-?] | [-help] | [-h]] [-fe frontend...] [-db databinding...] [-wv wsdlVersion...] [-p [wsdlNamespace=]PackageName...] [-b bindingName... ] [-sn serviceName] [-d output-directory] [-catalog catalogName] [-compile] [-classdir compile-class-dir] [-client] [-server] [-impl] [-all] [-ant] [-keep] [-defaultValues[=DefaultValueProvider]] [-nexclude schema-namespace [=java-packagename]...] [-exsh { true | false }] [-dns { true | false }] [-dex { true | false }] [-wsdlLocation wsdlLocation] [-xjcargs] [-noAddressBinding] [-validate] [-v] [[-verbose] | [-quiet]] wsdlfile

Arguments

The arguments used to manage the code generation process are reviewed in the following table.

OptionInterpretation
-?Displays the online help for this utility.
-help
-h
-fe frontendSpecifies the front end used by the code generator. The default is jaxws.[a]
-db databindingSpecifies the data binding used by the code generator. The default is jaxb.[b]
-wv wsdlVersionSpecifies the WSDL version expected by the tool. The default is 1.1.[c]
-p [wsdlNamespace=]PackageNameSpecifies zero, or more, package names to use for the generated code. Optionally specifies the WSDL namespace to package name mapping.
-b bindingNameSpecifies zero, or more, JAXWS or JAXB binding files. Use spaces to separate multiple entries.
-sn serviceNameSpecifies 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.
-d output-directorySpecifies the directory into which the generated code files are written.
-catalog catalogUrlSpecifies the URL of an XML catalog to use for resolving imported schemas and WSDL documents.
-compileCompiles generated Java files.
-classdir complile-class-dirSpecifies the directory into which the compiled class files are written.
-clientGenerates starting point code for a client mainline.
-serverGenerates starting point code for a server mainline.
-implGenerates starting point code for an implementation object.
-allGenerates all starting point code: types, service proxy, service interface, server mainline, client mainline, implementation object, and an Ant build.xml file.
-antGenerates the Ant build.xml file.
-keepInstructs the tool to not overwrite any existing files.
-defaultValues[=DefaultValueProvider]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 RandomValueProvider class is used.
-nexclude schema-namespace[=java-packagename]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).
-exsh (true/false)Enables or disables processing of extended soap header message binding. Default is false.
-dns (true/false)Enables or disables the loading of the default namespace package name mapping. Default is true.
-dex (true/false)Enables or disables the loading of the default excludes namespace mapping. Default is true.
-wsdlLocation wsdlLocationSpecifies the value of the @WebService annotation's wsdlLocation property.
-xjcargsSpecifies 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 -xjc-X.
-noAddressBindingInstructs the tool to use the Fuse Services Framework proprietary WS-Addressing type instead of the JAX-WS 2.1 compliant mapping.
-validateInstructs the tool to validate the WSDL document before attempting to generate any code.
-vDisplays the version number for the tool.
-verboseDisplays comments during the code generation process.
-quietSuppresses comments during the code generation process.
wsdlfileThe path and name of the WSDL file to use in generating the code.

[a] Currently, Fuse Services Framework only provides the JAX-WS front end for the code generator.

[b] Currently, Fuse Services Framework only provides the JAXB data binding for the code generator.

[c] Currently, Fuse Services Framework only provides WSDL 1.1 support for the code generator.

Comments powered by Disqus