svn commit: r1025044 - in /websites/production/cxf/content: cache/docs.pageCache docs/wsdl-to-java.html

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1025044 - in /websites/production/cxf/content: cache/docs.pageCache docs/wsdl-to-java.html

buildbot
Author: buildbot
Date: Wed Feb  7 17:57:16 2018
New Revision: 1025044

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/wsdl-to-java.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/wsdl-to-java.html
==============================================================================
--- websites/production/cxf/content/docs/wsdl-to-java.html (original)
+++ websites/production/cxf/content/docs/wsdl-to-java.html Wed Feb  7 17:57:16 2018
@@ -32,9 +32,9 @@
 <link type="text/css" rel="stylesheet" href="/resources/highlighter/styles/shThemeCXF.css">
 
 <script src='/resources/highlighter/scripts/shCore.js'></script>
-<script src='/resources/highlighter/scripts/shBrushBash.js'></script>
-<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
 <script src='/resources/highlighter/scripts/shBrushJava.js'></script>
+<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
+<script src='/resources/highlighter/scripts/shBrushBash.js'></script>
 <script>
   SyntaxHighlighter.defaults['toolbar'] = false;
   SyntaxHighlighter.all();
@@ -130,9 +130,10 @@ Apache CXF -- WSDL to Java
 -wsdlLocation &lt;wsdlLocation&gt; -xjc&lt;xjc-arguments&gt;* -asyncMethods&lt;[=method1,method2,...]&gt;*
 -bareMethods&lt;[=method1,method2,...]&gt;* -mimeMethods&lt;[=method1,method2,...]&gt;* -noAddressBinding
 -faultSerialVersionUID &lt;fault-serialVersionUID&gt; -exceptionSuper &lt;exceptionSuper&gt;
--mark-generated -h|-?|-help -version|-v -verbose|-V -quiet|-q|-Q -wsdlList &lt;wsdlurl&gt;
+-mark-generated -suppress-generated-date -h|-?|-help -version|-v -verbose|-V -quiet|-q|-Q
+-wsdlList &lt;wsdlurl&gt;
 </pre>
-</div></div><h3 id="WSDLtoJava-Description">Description</h3><p><strong>wsdl2java</strong> takes a WSDL document and generates fully annotated Java code from which to implement a service. The WSDL document must have a valid <code>portType</code> element, but it does not need to contain a binding element or a service element. Using the optional arguments you can customize the generated code. In addition, wsdl2java can generate an Ant based makefile to build your application.</p><h3 id="WSDLtoJava-Options">Options</h3><p>The options used to validate WSDL file are reviewed in the following table.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Interpretation</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-?</code>,<code>-h</code>,<code>-help</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Displays the o
 nline help for this utility and exits.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-fe frontend-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the frontend. Default is JAXWS. Currently supports only JAXWS frontend and a "jaxws21" frontend to generate JAX-WS 2.1 compliant code.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-db databinding-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the databinding. Default is jaxb. Currently supports jaxb, xmlbeans, sdo (sdo-static and sdo-dynamic), and jibx.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-wv wsdl-version</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the wsdl version .Default is WSDL1.1. Currently suppports only WSDL1.1 version.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-p [ wsdl-namespace= ] PackageName</code></
 p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies zero, or more, package names to use for the generated code. Optionally specifies the WSDL namespace to package name mapping.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-sn service-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The WSDL service name to use for the generated code.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-b binding-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies JAXWS or JAXB binding files or XMLBeans context files. Use multiple -b flags to specify multiple entries.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-catalog catalog-file-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specify catalog file to map the imported wsdl/schema</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-d output-directory<
 /code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the directory into which the generated code files are written.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-compile</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Compiles generated Java files.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-classdir compile-class-dir</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the directory into which the compiled class files are written.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-client</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates starting point code for a client mainline.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-clientjar jar-file-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates the jar file which contains all the client classes a
 nd wsdl;the specified wsdlLocation won't work when the -clientJar is defined.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-server</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates starting point code for a server mainline.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-impl</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates starting point code for an implementation object.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-all</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates all starting point code: types, service proxy, service interface, server mainline, client mainline, implementation object, and an Ant <code>build.xml</code> file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-ant</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specify to generate an Ant <code>build.xm
 l</code> script.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-autoNameResolution</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Automatically resolve naming conflicts without requiring the use of binding customizations.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-defaultValues=[DefaultValueProvider impl]</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies that default values are generated for the impl and client. You can also provide a custom default value provider. The default provider is <code>RandomValueProvider</code></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-nexclude schema-namespace [=java-packagename]</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-exsh (true/false)</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables or disables processing of implicit SOAP headers (i.e. SOAP headers defined in the wsdl:binding but not wsdl:portType section.) 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-soap for this flag to work. Default is false.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-dns (true/false)</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables or disables the loading of the default namespace package name mapping. Default is true and <a shape="rect" class="external-link" href="http://www.w3.org/2005/08/addressing=org.apache.cxf.ws.addressing" rel="nofollow">http://www.w3.org/2005/08/addressing=org.a
 pache.cxf.ws.addressing</a> namespace package mapping will be enabled.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-dex (true/false)</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables or disables the loading of the default excludes namespace mapping. Default is true.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-validate</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables validating the WSDL before generating the code.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-keep</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies that the code generator will not overwrite any preexisting files. You will be responsible for resolving any resulting compilation issues.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-wsdlLocation wsdlLocation</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>S
 pecifies the value of the @WebServiceClient annotation's wsdlLocation property.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-xjc&lt;xjc args&gt;</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies a comma separated list of <a shape="rect" class="external-link" href="https://jaxb.dev.java.net/nonav/2.2/docs/xjc.html" rel="nofollow">arguments</a> that are passed directly to the XJC processor when using the JAXB databinding. A list of available XJC plugins can be obtained using <code>-xjc-X</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-noAddressBinding</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-v</code></p></td><td
  colspan="1" rowspan="1" class="confluenceTd"><p>Displays the version number for the tool.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-verbose</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Displays comments during the code generation process.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-quiet</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Suppresses comments during the code generation process.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-exceptionSuper</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>superclass for fault beans generated from wsdl:fault elements (defaults to java.lang.Exception)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-reserveClass classname</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Used with -autoNameResolution, defines a class names for wsdl-to-java <stron
 g>not</strong> to use when generating classes. Use this option multiple times for multiple classes.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-allowElementReferences&lt;=true&gt;</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>(or -aer) If true, disregards 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.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-asyncMethods=foo,bar,...</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>List of subsequently generated Java class methods to allow for client-side asynchronous calls, similar to enableAsyncMapping in a JAX-WS binding file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-bareMethods=foo,bar,...</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>List of subsequently generated Java class methods to have wrapper st
 yle (see below), similar to enableWrapperStyle in JAX-WS binding file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-mimeMethods=foo,bar,...</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>List of subsequently generated Java class methods to enable mime:content mapping, similar to enableMIMEContent in JAX-WS binding file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-faultSerialVersionUID &lt;fault-serialVersionUID&gt;</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>How to generate suid of fault exceptions. Use NONE, TIMESTAMP, FQCN, or a specific number. Default is NONE.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-mark-generated</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Adds the <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/javax/annotation/Generated.html" rel="nofollow">@Generated</a> annot
 ation to classes generated.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><em>wsdlurl</em></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The path and name of the WSDL file to use in generating the code.</p></td></tr></tbody></table></div><p>You must specify the absolute or relative path to the WSDL document as the last argument.</p><p><span class="confluence-anchor-link" id="WSDLtoJava-usingant"></span></p><h3 id="WSDLtoJava-Examples">Examples</h3><p><code>wsdl2java HelloWorld.wsdl</code></p><p><code>wsdl2java -p com.mycompany.greeting Greeting.wsdl</code></p><p><code>wsdl2java -client HelloWorld.wsdl</code></p><p>(See below for usage with Apache <a shape="rect" href="wsdl-to-java.html">Ant</a> and <a shape="rect" href="wsdl-to-java.html">Maven</a>.)</p><h3 id="WSDLtoJava-Usingwsdl2javawithAnt">Using wsdl2java with Ant</h3><p>The wsdl2java command can be wrapped inside an Ant target as shown below:</p><div class="code panel pdl" style="border-wid
 th: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="WSDLtoJava-Description">Description</h3><p><strong>wsdl2java</strong> takes a WSDL document and generates fully annotated Java code from which to implement a service. The WSDL document must have a valid <code>portType</code> element, but it does not need to contain a binding element or a service element. Using the optional arguments you can customize the generated code. In addition, wsdl2java can generate an Ant based makefile to build your application.</p><h3 id="WSDLtoJava-Options">Options</h3><p>The options used to validate WSDL file are reviewed in the following table.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Interpretation</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-?</code>,<code>-h</code>,<code>-help</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Displays the o
 nline help for this utility and exits.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-fe frontend-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the frontend. Default is JAXWS. Currently supports only JAXWS frontend and a "jaxws21" frontend to generate JAX-WS 2.1 compliant code.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-db databinding-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the databinding. Default is jaxb. Currently supports jaxb, xmlbeans, sdo (sdo-static and sdo-dynamic), and jibx.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-wv wsdl-version</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the wsdl version .Default is WSDL1.1. Currently suppports only WSDL1.1 version.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-p [ wsdl-namespace= ] PackageName</code></
 p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies zero, or more, package names to use for the generated code. Optionally specifies the WSDL namespace to package name mapping.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-sn service-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The WSDL service name to use for the generated code.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-b binding-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies JAXWS or JAXB binding files or XMLBeans context files. Use multiple -b flags to specify multiple entries.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-catalog catalog-file-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specify catalog file to map the imported wsdl/schema</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-d output-directory<
 /code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the directory into which the generated code files are written.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-compile</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Compiles generated Java files.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-classdir compile-class-dir</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the directory into which the compiled class files are written.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-client</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates starting point code for a client mainline.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-clientjar jar-file-name</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates the jar file which contains all the client classes a
 nd wsdl;the specified wsdlLocation won't work when the -clientJar is defined.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-server</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates starting point code for a server mainline.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-impl</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates starting point code for an implementation object.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-all</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Generates all starting point code: types, service proxy, service interface, server mainline, client mainline, implementation object, and an Ant <code>build.xml</code> file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-ant</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specify to generate an Ant <code>build.xm
 l</code> script.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-autoNameResolution</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Automatically resolve naming conflicts without requiring the use of binding customizations.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-defaultValues=[DefaultValueProvider impl]</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies that default values are generated for the impl and client. You can also provide a custom default value provider. The default provider is <code>RandomValueProvider</code></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-nexclude schema-namespace [=java-packagename]</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-exsh (true/false)</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables or disables processing of implicit SOAP headers (i.e. SOAP headers defined in the wsdl:binding but not wsdl:portType section.) 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-soap for this flag to work. Default is false.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-dns (true/false)</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables or disables the loading of the default namespace package name mapping. Default is true and <a shape="rect" class="external-link" href="http://www.w3.org/2005/08/addressing=org.apache.cxf.ws.addressing" rel="nofollow">http://www.w3.org/2005/08/addressing=org.a
 pache.cxf.ws.addressing</a> namespace package mapping will be enabled.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-dex (true/false)</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables or disables the loading of the default excludes namespace mapping. Default is true.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-validate</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Enables validating the WSDL before generating the code.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-keep</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies that the code generator will not overwrite any preexisting files. You will be responsible for resolving any resulting compilation issues.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-wsdlLocation wsdlLocation</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>S
 pecifies the value of the @WebServiceClient annotation's wsdlLocation property.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-xjc&lt;xjc args&gt;</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies a comma separated list of <a shape="rect" class="external-link" href="https://jaxb.dev.java.net/nonav/2.2/docs/xjc.html" rel="nofollow">arguments</a> that are passed directly to the XJC processor when using the JAXB databinding. A list of available XJC plugins can be obtained using <code>-xjc-X</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-noAddressBinding</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-v</code></p></td><td
  colspan="1" rowspan="1" class="confluenceTd"><p>Displays the version number for the tool.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-verbose</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Displays comments during the code generation process.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-quiet</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Suppresses comments during the code generation process.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-exceptionSuper</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>superclass for fault beans generated from wsdl:fault elements (defaults to java.lang.Exception)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-reserveClass classname</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Used with -autoNameResolution, defines a class names for wsdl-to-java <stron
 g>not</strong> to use when generating classes. Use this option multiple times for multiple classes.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-allowElementReferences&lt;=true&gt;</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>(or -aer) If true, disregards 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.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-asyncMethods=foo,bar,...</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>List of subsequently generated Java class methods to allow for client-side asynchronous calls, similar to enableAsyncMapping in a JAX-WS binding file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-bareMethods=foo,bar,...</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>List of subsequently generated Java class methods to have wrapper st
 yle (see below), similar to enableWrapperStyle in JAX-WS binding file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-mimeMethods=foo,bar,...</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>List of subsequently generated Java class methods to enable mime:content mapping, similar to enableMIMEContent in JAX-WS binding file.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-faultSerialVersionUID &lt;fault-serialVersionUID&gt;</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>How to generate suid of fault exceptions. Use NONE, TIMESTAMP, FQCN, or a specific number. Default is NONE.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-mark-generated</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Adds the <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/javax/annotation/Generated.html" rel="nofollow">@Generated</a> annot
 ation to classes generated.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>-suppress-generated-date</code></td><td colspan="1" rowspan="1" class="confluenceTd">Suppresses writing the current timestamp in the generated file (since CXF version 3.2.2)</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><em>wsdlurl</em></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The path and name of the WSDL file to use in generating the code.</p></td></tr></tbody></table></div><p>You must specify the absolute or relative path to the WSDL document as the last argument.</p><p><span class="confluence-anchor-link" id="WSDLtoJava-usingant"></span></p><h3 id="WSDLtoJava-Examples">Examples</h3><p><code>wsdl2java HelloWorld.wsdl</code></p><p><code>wsdl2java -p com.mycompany.greeting Greeting.wsdl</code></p><p><code>wsdl2java -client HelloWorld.wsdl</code></p><p>(See below for usage with Apache <a shape="rect" href="wsdl-to-java.html">Ant</a> and <a shape="
 rect" href="wsdl-to-java.html">Maven</a>.)</p><h3 id="WSDLtoJava-Usingwsdl2javawithAnt">Using wsdl2java with Ant</h3><p>The wsdl2java command can be wrapped inside an Ant target as shown below:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">&lt;?xml version="1.0"?&gt;
 &lt;project name="cxf wsdl2java" basedir="."&gt;  
    &lt;property name="cxf.home" location ="/usr/myapps/cxf-2.5.1"/&gt;