Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What you have to do it is to configure maven pom, in order to let maven does the work.</p> <h2>First step</h2> <p>First of all you configure a maven properties, let's call it <code>outputDirectory</code>, the folder should be located inside the maven target folder, which I usually don't commit in the SCM.</p> <p>Then you have to configure <a href="http://axis.apache.org/axis2/java/core/tools/maven-plugins/maven-wsdl2code-plugin.html" rel="nofollow">Axis maven plugin</a> in order to generate stub sources into the target folder, as follow</p> <pre><code>&lt;build&gt; &lt;plugins&gt; ... &lt;plugin&gt; &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt; &lt;artifactId&gt;axis2-wsdl2code-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.4&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;wsdl2code&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; ... your configuration .. &lt;generateServerSide&gt;true&lt;/generateServerSide&gt; &lt;generateServerSideInterface&gt;true&lt;/generateServerSideInterface&gt; &lt;outputDirectory&gt;${outputDirectory}&lt;/outputDirectory&gt; ... &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; ... &lt;/plugins&gt; &lt;/build&gt; </code></pre> <p>with <code>generateServerSideInterface</code> to true the plugin generates an interface named <code>XXXSkeleton</code> that you can implement.</p> <h2>Second Step</h2> <p>Then you have to configure <a href="http://mojo.codehaus.org/build-helper-maven-plugin/usage.html" rel="nofollow">maven build helper plugin</a>, in order to include the generated sources.</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.8&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;add-source&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;add-source&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;sources&gt; &lt;source&gt;${outputDirectory}&lt;/source&gt; &lt;/sources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>my personal opinion is that axis is not the better chioce for java Web Service, JAX-WS compliant framework are the best choice, here are the how with <a href="https://jax-ws-commons.java.net/jaxws-maven-plugin/usage.html" rel="nofollow">jax-ws maven plugin</a>, the generate sources are far better and clean then axis sources.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload