You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bu...@apache.org on 2018/04/19 09:57:22 UTC

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

Author: buildbot
Date: Thu Apr 19 09:57:21 2018
New Revision: 1028647

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 Thu Apr 19 09:57:21 2018
@@ -157,7 +157,7 @@ Apache CXF -- WSDL to Java
    </target>
 </project>
 </pre>
-</div></div><p>Make sure you set the "fork=true" attribute for the &lt;java/&gt; task as shown above. Also, remember to keep each word or flag within the command line options in its own &lt;arg/&gt; element (e.g., do not use &lt;arg value="-d src"/&gt;, but split them up into two &lt;arg/&gt; elements as done here.)</p><p>Although we would recommend using Maven, see the <a shape="rect" class="external-link" href="http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/antbuild/">antbuild sample</a> in the CXF distribution for an example of using Ant to create a CXF project.</p><h2 id="WSDLtoJava-JAXWSCustomization">JAXWS Customization</h2><p>The default JAX-WS frontend created by wsdl2java can be customized by using a customization binding file. For an example, see the <a shape="rect" class="external-link" href="http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jaxws_async/wsdl/async_binding.xml?view=markup">async_binding.xml</a> file 
 in samples/jaxws_async &#8211; if specified when running wsdl2java, it will generate asynchronous methods in the SEI.</p><p><strong>Q: What if I want to change the generated SEI name?</strong></p><p>A: We don't have a command-line option to do this, but you can have a binding file like the following snippet to achieve this goal</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Make sure you set the "fork=true" attribute for the &lt;java/&gt; task as shown above. Also, remember to keep each word or flag within the command line options in its own &lt;arg/&gt; element (e.g., do not use &lt;arg value="-d src"/&gt;, but split them up into two &lt;arg/&gt; elements as done here.)</p><p>Although we would recommend using Maven, see the <a shape="rect" class="external-link" href="https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/antbuild" rel="nofollow">antbuild sample</a> in the CXF distribution for an example of using Ant to create a CXF project.</p><h2 id="WSDLtoJava-JAXWSCustomization">JAXWS Customization</h2><p>The default JAX-WS frontend created by wsdl2java can be customized by using a customization binding file. For an example, see the <a shape="rect" class="external-link" href="https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jaxws_async/wsdl/async_binding.xml" rel="nofollow">asyn
 c_binding.xml</a> file in samples/jaxws_async &#8211; if specified when running wsdl2java, it will generate asynchronous methods in the SEI.</p><p><strong>Q: What if I want to change the generated SEI name?</strong></p><p>A: We don't have a command-line option to do this, but you can have a binding file like the following snippet to achieve this goal</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;bindings
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"