geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v2.2 > jaxws-tools
Date Thu, 30 Jul 2009 10:24:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=GMOxDOC22&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/GMOxDOC22/jaxws-tools">jaxws-tools</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~chirunhua@gmail.com">Runhua
Chi</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <p>The <b>jaxws-tools</b> script can be used to generate portable
artifacts used in JAX-WS web services. For example, portable artifacts such as Service Endpoint
Interface (SEI) class, Service class, JAXB generated value types, etc. </p>

<p>This command has the following syntax:</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>jaxws-tools toolName [toolOptions] ...
</pre>
</div></div>

<p>Where <tt>toolName</tt> can be either:</p>

<ul>
	<li><b><a href="#jaxws-tools-wsgen">wsgen</a></b> - generate
portable artifacts from Java</li>
	<li><b><a href="#jaxws-tools-wsimport">wsimport</a></b> - generate
portable artifacts from WSDL</li>
</ul>


<p>The <b>jaxws-tools</b> command can also be started by using the <b>java
&#45;jar</b> command: </p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>java -Djava.endorsed.dirs=lib/endorsed -jar bin/jaxws-tools.jar toolName \[toolOptions\]
...
</pre>
</div></div>

<h2><a name="jaxws-tools-wsgen"></a>wsgen </h2>

<p>The <b>jaxws-tools</b> uses the <b><a href="http://java.sun.com/javase/6/docs/technotes/tools/share/wsgen.html"
rel="nofollow">wsgen</a></b> tool provided by Sun to generate the portable
artifacts from Java class. The <b>wsgen</b> tools has the following syntax:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>jaxws-tools wsgen [options] &lt;SEI&gt;
</pre>
</div></div>

<ul>
	<li><b>-classpath</b> &lt;path&gt;<br/>
Specifies where to find input class files.</li>
</ul>


<ul>
	<li><b>-d</b> &lt;directory&gt;<br/>
Specifies where to place generated output files.</li>
</ul>


<ul>
	<li><b>-keep</b><br/>
Keep generated files.</li>
</ul>


<ul>
	<li><b>-r</b> &lt;directory&gt;<br/>
Specifies where to place resource files such as WSDLs.</li>
</ul>


<ul>
	<li><b>-s</b> &lt;directory&gt;<br/>
Specifies where to place generated source files.</li>
</ul>


<ul>
	<li><b>-wsdl</b><br/>
Generate a WSDL file.  </li>
</ul>


<ul>
	<li><b>-servicename</b> &lt;name&gt;<br/>
Specifies the Service name to use in the generated WSDL (used in conjunction with the -wsdl
option).</li>
</ul>


<ul>
	<li><b>-portname</b> &lt;name&gt;<br/>
Specifies the Port name to use in the generated WSD (used in conjunction with the -wsdl option).</li>
</ul>


<p>Example:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>jaxws-tools wsgen -d output -keep -wsdl -classpath . foo.BarService
</pre>
</div></div>

<h2><a name="jaxws-tools-wsimport"></a>wsimport</h2>

<p>The <b>jaxws-tools</b> uses the <b><a href="http://java.sun.com/javase/6/docs/technotes/tools/share/wsimport.html"
rel="nofollow">wsimport</a></b> tool provided by Sun to generate the portable
artifacts from WSDL. The <b>wsimport</b> has the following syntax:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>jaxws-tools wsimport [options] &lt;WSDL_URI&gt;
</pre>
</div></div>

<ul>
	<li><b>-d</b> &lt;directory&gt;<br/>
Specifies where to place generated output files.</li>
</ul>


<ul>
	<li><b>-keep</b><br/>
Keep generated files.</li>
</ul>


<ul>
	<li><b>-p</b> &lt;pkg&gt;<br/>
Specifies the target package.</li>
</ul>


<ul>
	<li><b>-s</b> &lt;directory&gt;<br/>
Specifies where to place generated source files.</li>
</ul>


<ul>
	<li><b>-wsdllocation</b> &lt;location&gt;<br/>
Specified @WebService.wsdlLocation and @WebServiceClient.wsdlLocation value.</li>
</ul>


<p>Example:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
<pre>jaxws-tools wsimport -d output -keep http://localhost:8080/foo/Bar?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/GMOxDOC22/jaxws-tools">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=102673&revisedVersion=3&originalVersion=2">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/jaxws-tools?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message