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, 17 Nov 2011 12:34:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Java2WS+plugin">Maven
Java2WS plugin</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~dkulp">Daniel
Kulp</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >The outputFile value by default will
be: <br>{code} <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words"><span
class="diff-added-chars"style="background-color: #dfd;">$</span>{project.build.directory}/generated/wsdl/<span
class="diff-added-chars"style="background-color: #dfd;">$</span>{className}.wsdl</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <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>${cxf.version}<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>${cxf.version}<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>${cxf.version}<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="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CXF20DOC/Maven+Java2WS+plugin">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=2853218&revisedVersion=5&originalVersion=4">View
Changes</a>
                |
        <a href="https://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