cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF Documentation > Maven Java2WS plugin
Date Thu, 03 Sep 2009 22:04:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Java2WS+plugin">Maven
Java2WS plugin</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~christian%2Bschneider">Christian
Schneider</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <p>This plugin can generate WSDL, server side code used to start web service
and client side code from a java class.<br/>
Here is a simple example:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;plugin&gt;</span>
	<span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span class="code-tag">&lt;/groupId&gt;</span>
	<span class="code-tag">&lt;artifactId&gt;</span>cxf-java2ws-plugin<span
class="code-tag">&lt;/artifactId&gt;</span>
	<span class="code-tag">&lt;version&gt;</span>2.1.3<span class="code-tag">&lt;/version&gt;</span>
	<span class="code-tag">&lt;dependencies&gt;</span>
		<span class="code-tag">&lt;dependency&gt;</span>
			<span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span
class="code-tag">&lt;/groupId&gt;</span>
			<span class="code-tag">&lt;artifactId&gt;</span>cxf-rt-frontend-jaxws<span
class="code-tag">&lt;/artifactId&gt;</span>
			<span class="code-tag">&lt;version&gt;</span>2.1.3<span class="code-tag">&lt;/version&gt;</span>
		<span class="code-tag">&lt;/dependency&gt;</span>
		<span class="code-tag">&lt;dependency&gt;</span>
			<span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span
class="code-tag">&lt;/groupId&gt;</span>
			<span class="code-tag">&lt;artifactId&gt;</span>cxf-rt-frontend-simple<span
class="code-tag">&lt;/artifactId&gt;</span>
			<span class="code-tag">&lt;version&gt;</span>2.1.3<span class="code-tag">&lt;/version&gt;</span>
		<span class="code-tag">&lt;/dependency&gt;</span>
	<span class="code-tag">&lt;/dependencies&gt;</span>

	<span class="code-tag">&lt;executions&gt;</span>
		<span class="code-tag">&lt;execution&gt;</span>
			<span class="code-tag">&lt;id&gt;</span>process-classes<span class="code-tag">&lt;/id&gt;</span>
			<span class="code-tag">&lt;phase&gt;</span>process-classes<span
class="code-tag">&lt;/phase&gt;</span>
			<span class="code-tag">&lt;configuration&gt;</span>
				<span class="code-tag">&lt;className&gt;</span>org.apache.hello_world.Greeter<span
class="code-tag">&lt;/className&gt;</span>
				<span class="code-tag">&lt;genWsdl&gt;</span>true<span class="code-tag">&lt;/genWsdl&gt;</span>
				<span class="code-tag">&lt;verbose&gt;</span>true<span class="code-tag">&lt;/verbose&gt;</span>
			<span class="code-tag">&lt;/configuration&gt;</span>
			<span class="code-tag">&lt;goals&gt;</span>
				<span class="code-tag">&lt;goal&gt;</span>java2ws<span class="code-tag">&lt;/goal&gt;</span>
			<span class="code-tag">&lt;/goals&gt;</span>
		<span class="code-tag">&lt;/execution&gt;</span>
	<span class="code-tag">&lt;/executions&gt;</span>
<span class="code-tag">&lt;/plugin&gt;</span>
</pre>
</div></div>
<p>Here are the options you can use and their defaults:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
&lt;configuration&gt;
   &lt;className&gt;...&lt;/className&gt;
   &lt;classpath&gt;...&lt;/classpath&gt;
   &lt;outputFile&gt;...&lt;/outputFile&gt;
   &lt;genWsdl&gt;<span class="code-keyword">true</span>&lt;/genWsdl&gt;
   &lt;genServer&gt;<span class="code-keyword">false</span>&lt;/genServer&gt;
   &lt;genClient&gt;<span class="code-keyword">false</span>&lt;/genClient&gt;
   &lt;genWrapperbean&gt;<span class="code-keyword">false</span>&lt;/genWrapperbean&gt;
   &lt;frontend&gt;jaxws&lt;/frontend&gt;
   &lt;databinding&gt;jaxb&lt;/databinding&gt;
   &lt;serviceName&gt;...&lt;/serviceName&gt;
   &lt;soap12&gt;<span class="code-keyword">false</span>&lt;/soap12&gt;
   &lt;targetNameSpace&gt;...&lt;/targetNameSpace&gt;
   &lt;verbose&gt;<span class="code-keyword">false</span>&lt;/verbose&gt;
   &lt;quiet&gt;<span class="code-keyword">false</span>&lt;/quiet&gt;
   &lt;attachWsdl&gt;<span class="code-keyword">false</span>&lt;/attachWsdl&gt;
&lt;/configuration&gt;
</pre>
</div></div>
<p>For detailed descriptions of the configuration elements see <a href="/confluence/display/CXF20DOC/Java+to+WS"
title="Java to WS">Java to WS</a> page.</p>

<p>The outputFile value by default will be:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
{project.build.directory}/generated/wsdl/{className}.wsdl
</pre>
</div></div>
     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Java2WS+plugin">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=2853218&revisedVersion=3&originalVersion=2">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Java2WS+plugin?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message