You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/05/01 23:20:38 UTC
svn commit: r652665 [40/45] - in /webservices/axis2/site: ./ 1_4/ 1_4/adb/
1_4/adb/images/ 1_4/images/ 1_4/images/archi-guide/ 1_4/images/userguide/
1_4/jibx/ 1_4/src/ css/ download/0_9/ download/0_91/ download/0_92/
download/0_93/ download/0_94/ downl...
Modified: webservices/axis2/site/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html
URL: http://svn.apache.org/viewvc/webservices/axis2/site/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html?rev=652665&r1=652664&r2=652665&view=diff
==============================================================================
--- webservices/axis2/site/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html (original)
+++ webservices/axis2/site/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html Thu May 1 14:20:27 2008
@@ -1,100 +1,100 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Axis2/Java - Maven2 WSDL2Code Plug-in Guide</title><style type="text/css" media="all">
- @import url("../../../style/maven-base.css");
-
- @import url("../../../style/maven-theme.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://www.apache.org/images/asf-logo.gif"></img></a><a href="http://ws.apache.org/axis2/" id="projectLogo"><img alt="Apache Axis2" src="http://ws.apache.org/axis2/images/axis.jpg"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 04 May 2007
- | Doc for 1.2</div><div class="xright">
-
- <a href="../../../index.html">Axis2/Java</a>
-
-
-
- <span class="separator">|</span>
-
-
- <a href="http://ws.apache.org/axis2/c" class="externalLink" title="External Link">Axis2/C</a>
-
-
-
- <span class="separator">|</span>
-
-
- <a href="http://ws.apache.org" class="externalLink" title="External Link">Apache WS</a>
-
-
-
- <span class="separator">|</span>
-
-
- <a href="http://www.apache.org" class="externalLink" title="External Link">Apache </a>
- </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuAxis2_Java"><h5>Axis2/Java</h5><ul><li class="none"><a href="../../../index.html">Home</a></li></ul></div><div id="menuDownloads"><h5>Downloads</h5><ul><li class="none"><a href="../../../download.cgi">Releases</a></li><li class="none"><a href="../../../modules/index.html">Modules</a></li><li class="none"><a href="../../../tools/index.html">Tools</a></li></ul></div><div id="menuDocumentation"><h5>Documentation</h5><ul><li class="expanded"><a href="../../../1_2/contents.html">Version 1.2</a><ul><li class="none"><a href="../../../1_2/toc.html">Table of Contents</a></li><li class="none"><a href="../../../1_2/installationguide.html">Installation Guide</a></li><li class="none"><a href="../../../1_2/quickstartguide.html">QuickStart Guide</a></li><li class="none"><a href="../../../1_2/userguide.html">User Guide</a></li><li class="none"><a href="../../../1_2/pojoguide.html">POJO
Guide</a></li><li class="none"><a href="../../../1_2/spring.html">Spring Guide</a></li><li class="none"><a href="../../../1_2/webadminguide.html">Web Administrator's Guide</a></li><li class="none"><a href="../../../1_2/migration.html">Migration Guide (from Axis1)</a></li></ul></li><li class="none"><a href="../../../1_1_1/contents.html">Version 1.1.1</a></li><li class="none"><a href="../../../1_1/contents.html">Version 1.1</a></li><li class="none"><a href="../../../1_0/index.html">Version 1.0</a></li><li class="none"><a href="../../../0_95/index.html">Version 0.95</a></li><li class="none"><a href="../../../0_94/index.html">Version 0.94</a></li><li class="none"><a href="../../../0_93/index.html">Version 0.93</a></li></ul></div><div id="menuResources"><h5>Resources</h5><ul><li class="none"><a href="../../../faq.html">FAQ</a></li><li class="none"><a href="../../../articles.html">Articles</a></li><li class="none"><a href="http://wiki.apache.org/ws/FrontPage/Axis2/" class="externa
lLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../refLib.html">Reference Library</a></li><li class="none"><a href="http://ws.apache.org/axis2/1_2/api/index.html" class="externalLink" title="External Link">Online Java Docs</a></li></ul></div><div id="menuGet_Involved"><h5>Get Involved</h5><ul><li class="none"><a href="../../../overview.html">Overview</a></li><li class="none"><a href="../../../svn.html">Checkout the Source</a></li><li class="none"><a href="../../../mail-lists.html">Mailing Lists</a></li><li class="none"><a href="../../../guidelines.html">Developer Guidelines</a></li><li class="none"><a href="../../../siteHowTo.html">Build the Site</a></li></ul></div><div id="menuProject_Information"><h5>Project Information</h5><ul><li class="none"><a href="../../../team-list.html">Project Team</a></li><li class="none"><a href="../../../issue-tracking.html">Issue Tracking</a></li><li class="none"><a href="http://svn.apache.org/viewcvs.cgi/webservices/
axis2/trunk/?root=Apache-SVN" class="externalLink" title="External Link">Source Code</a></li><li class="none"><a href="../../../thanks.html">Acknowledgements</a></li><li class="none"><a href="http://www.apache.org/licenses/LICENSE-2.0.html" class="externalLink" title="External Link">License</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Maven2_WSDL2Code_Plug-in_Guide"></a><h2>Maven2 WSDL2Code Plug-in Guide</h2><div class="subsection"><a name="Introduction"></a><h3>Introduction</h3><p>This plugin takes as input a WSDL and generates client and server stubs
-for calling or implementing a Web service matching the WSDL.</p><p><a href="http://ws.apache.org/axis2/tools/index.html" class="newWindow" title="New Window" target="_blank">[Download Plugin Tool]</a></p></div><div class="subsection"><a name="Goals"></a><h3>Goals</h3><p>The WSDl2Code offers a single goal:</p><ul>
- <li>wsdl2code (default): Reads the WSDL and generates code.</li>
-</ul><p>To run the plugin, add the following section to your <a href="http://maven.apache.org/guides/introduction/introduction-to-the-pom.html" class="externalLink" title="External Link">POM</a>
-(Project Object Model):</p>
- <div class="source"><pre> <build>
- <plugins>
- <plugin>
- <groupId>org.apache.axis2.maven2</groupId>
- <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>wsdl2code</goal>
- </goals>
- </execution>
- <configuration>
- <packageName>com.foo.myservice</packageName>
- </configuration>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</pre></div>
- <p>The plugin will be invoked automatically in the generate-sources phase.
-You can also invoke it directly from the command line by running the
-command</p>
- <div class="source"><pre>mvn wsdl2code:wsdl2code
-
-</pre></div>
- </div><div class="subsection"><a name="The_WSDL2Code_Goal"></a><h3>The WSDL2Code Goal</h3><p>By default, the plugin reads the file
-<strong>src/main/axis2/service.wsdl</strong>. Sources for the Java
-programming language and the ADB data binding are generated into
-<strong>target/generated-sources/axis2/wsdl2code</strong>. Note the
-configuration element <strong>packageName</strong> above, which sets the
-package name, thus a subdirectory.</p></div><div class="subsection"><a name="Configuration"></a><h3>Configuration</h3><p>The WSDL2Code goal takes the following parameters as input. All parameters
-can be set from the command line by using properties. For example, the
-parameter "generateServerSide" may be set using the property
-"axis2.wsdl2code.generateServerSide". If the parameter isn't set via property
-or in the POM, then a default value applies.</p><table class="bodyTable"><tbody>
- <tr class="b" align="center"><td><strong>Parameter Name</strong></td><td><strong>Command Line Property</strong></td><td><strong>Description</strong></td><td><strong>Default Value</strong></td></tr>
- <tr class="a"><td>databindingName</td><td>${axis2.wsdl2code.databindingName}</td><td>Data binding framework, which is being used by the generated
- sources.</td><td>adb</td></tr>
- <tr class="b"><td>generateAllClasses</td><td>${axis2.wsdl2code.generateAllClasses}</td><td>Whether to generate simply all classes. This is only valid in
- conjunction with "generateServerSide".</td><td>false</td></tr>
- <tr class="a"><td>generateServerSide</td><td>${axis2.wsdl2code.generateServerSide}</td><td>Whether server side sources are being generated.</td><td>false</td></tr>
- <tr class="b"><td>generateServerSideInterface</td><td>${axis2.wsdl2code.generateServerSideInterface}</td><td>Whether to generate the server side interface.</td><td>false</td></tr>
- <tr class="a"><td>generateServicesXml</td><td>${axis2.wsdl2code.generateServicesXml}</td><td>Whether a "services.xml" file is being generated.</td><td>false</td></tr>
- <tr class="b"><td>generateTestcase</td><td>${axis2.wsdl2code.generateTestCase}</td><td>Whether a test case is being generated.</td><td>false</td></tr>
- <tr class="a"><td>language</td><td>${axis2.wsdl2code.language}</td><td>Programming language of the generated sources.</td><td>java</td></tr>
- <tr class="b"><td>namespaceToPackages</td><td>${axis2.wsdl2code.namespaceToPackages}</td><td>Map of namespace URI to packages in the format
- uri1=package1,uri2=package2,... Using this parameter is discouraged.
- In general, you should use the namespaceUris parameter. However, the
- latter cannot be set on the command line.</td><td></td></tr>
- <tr class="a"><td>namespaceURIs</td><td></td><td>Map of namespace URI to packages. Example: <namespaceURIs>
- <namespaceURI> <uri>uri1</uri>
- <package>package1</package> </namespaceURI>
- ........ </namespaceURI></td><td></td></tr>
- <tr class="b"><td>outputDirectory</td><td>${axis2.wsdl2code.target}</td><td>Target directory, where sources are being
- target/generated-sources/axis2/wsdl2code generated.</td><td></td></tr>
- <tr class="a"><td>packageName</td><td>${axis2.wsdl2code.package}</td><td>Package name of the generated sources.</td><td></td></tr>
- <tr class="b"><td>portName</td><td>${axis2.wsdl2code.portName}</td><td>Port name, for which sources are being generated. By default,
- sources are generated for all ports.</td><td></td></tr>
- <tr class="a"><td>serviceName</td><td>${axis2.wsdl2code.serviceName}</td><td>Service name, for which sources are being generated. By default,
- sources are generated for all services.</td><td></td></tr>
- <tr class="b"><td>syncMode</td><td>${axis2.wsdl2code.syncMode}</td><td>Sync mode, for which sources are being generated; either of "sync",
- "async", or "both" (default).</td><td>both</td></tr>
- <tr class="a"><td>unpackClasses</td><td>${axis2.wsdl2code.unpackClasses}</td><td>Whether to unpack classes.</td><td></td></tr>
- <tr class="b"><td>wsdlFile</td><td>${axis2.wsdl2code.wsdl}</td><td>Location of the WSDL file, which is read as input</td><td>src/main/axis2/service.wsdl</td></tr>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Axis2/Java - Maven2 WSDL2Code Plug-in Guide</title><style type="text/css" media="all">
+ @import url("../../../style/maven-base.css");
+
+ @import url("../../../style/maven-theme.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://www.apache.org/images/asf-logo.gif"></img></a><a href="http://ws.apache.org/axis2/" id="projectLogo"><img alt="Apache Axis2" src="http://ws.apache.org/axis2/images/axis.jpg"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 04 May 2007
+ | Doc for 1.2</div><div class="xright">
+
+ <a href="../../../index.html">Axis2/Java</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://ws.apache.org/axis2/c" class="externalLink" title="External Link">Axis2/C</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://ws.apache.org" class="externalLink" title="External Link">Apache WS</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://www.apache.org" class="externalLink" title="External Link">Apache </a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuAxis2_Java"><h5>Axis2/Java</h5><ul><li class="none"><a href="../../../index.html">Home</a></li></ul></div><div id="menuDownloads"><h5>Downloads</h5><ul><li class="none"><a href="../../../download.cgi">Releases</a></li><li class="none"><a href="../../../modules/index.html">Modules</a></li><li class="none"><a href="../../../tools/index.html">Tools</a></li></ul></div><div id="menuDocumentation"><h5>Documentation</h5><ul><li class="expanded"><a href="../../../1_2/contents.html">Version 1.2</a><ul><li class="none"><a href="../../../1_2/toc.html">Table of Contents</a></li><li class="none"><a href="../../../1_2/installationguide.html">Installation Guide</a></li><li class="none"><a href="../../../1_2/quickstartguide.html">QuickStart Guide</a></li><li class="none"><a href="../../../1_2/userguide.html">User Guide</a></li><li class="none"><a href="../../../1_2/pojoguide.html">POJO
Guide</a></li><li class="none"><a href="../../../1_2/spring.html">Spring Guide</a></li><li class="none"><a href="../../../1_2/webadminguide.html">Web Administrator's Guide</a></li><li class="none"><a href="../../../1_2/migration.html">Migration Guide (from Axis1)</a></li></ul></li><li class="none"><a href="../../../1_1_1/contents.html">Version 1.1.1</a></li><li class="none"><a href="../../../1_1/contents.html">Version 1.1</a></li><li class="none"><a href="../../../1_0/index.html">Version 1.0</a></li><li class="none"><a href="../../../0_95/index.html">Version 0.95</a></li><li class="none"><a href="../../../0_94/index.html">Version 0.94</a></li><li class="none"><a href="../../../0_93/index.html">Version 0.93</a></li></ul></div><div id="menuResources"><h5>Resources</h5><ul><li class="none"><a href="../../../faq.html">FAQ</a></li><li class="none"><a href="../../../articles.html">Articles</a></li><li class="none"><a href="http://wiki.apache.org/ws/FrontPage/Axis2/" class="externa
lLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../refLib.html">Reference Library</a></li><li class="none"><a href="http://ws.apache.org/axis2/1_2/api/index.html" class="externalLink" title="External Link">Online Java Docs</a></li></ul></div><div id="menuGet_Involved"><h5>Get Involved</h5><ul><li class="none"><a href="../../../overview.html">Overview</a></li><li class="none"><a href="../../../svn.html">Checkout the Source</a></li><li class="none"><a href="../../../mail-lists.html">Mailing Lists</a></li><li class="none"><a href="../../../guidelines.html">Developer Guidelines</a></li><li class="none"><a href="../../../siteHowTo.html">Build the Site</a></li></ul></div><div id="menuProject_Information"><h5>Project Information</h5><ul><li class="none"><a href="../../../team-list.html">Project Team</a></li><li class="none"><a href="../../../issue-tracking.html">Issue Tracking</a></li><li class="none"><a href="http://svn.apache.org/viewcvs.cgi/webservices/
axis2/trunk/?root=Apache-SVN" class="externalLink" title="External Link">Source Code</a></li><li class="none"><a href="../../../thanks.html">Acknowledgements</a></li><li class="none"><a href="http://www.apache.org/licenses/LICENSE-2.0.html" class="externalLink" title="External Link">License</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Maven2_WSDL2Code_Plug-in_Guide"></a><h2>Maven2 WSDL2Code Plug-in Guide</h2><div class="subsection"><a name="Introduction"></a><h3>Introduction</h3><p>This plugin takes as input a WSDL and generates client and server stubs
+for calling or implementing a Web service matching the WSDL.</p><p><a href="http://ws.apache.org/axis2/tools/index.html" class="newWindow" title="New Window" target="_blank">[Download Plugin Tool]</a></p></div><div class="subsection"><a name="Goals"></a><h3>Goals</h3><p>The WSDl2Code offers a single goal:</p><ul>
+ <li>wsdl2code (default): Reads the WSDL and generates code.</li>
+</ul><p>To run the plugin, add the following section to your <a href="http://maven.apache.org/guides/introduction/introduction-to-the-pom.html" class="externalLink" title="External Link">POM</a>
+(Project Object Model):</p>
+ <div class="source"><pre> <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.axis2.maven2</groupId>
+ <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>wsdl2code</goal>
+ </goals>
+ </execution>
+ <configuration>
+ <packageName>com.foo.myservice</packageName>
+ </configuration>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</pre></div>
+ <p>The plugin will be invoked automatically in the generate-sources phase.
+You can also invoke it directly from the command line by running the
+command</p>
+ <div class="source"><pre>mvn wsdl2code:wsdl2code
+
+</pre></div>
+ </div><div class="subsection"><a name="The_WSDL2Code_Goal"></a><h3>The WSDL2Code Goal</h3><p>By default, the plugin reads the file
+<strong>src/main/axis2/service.wsdl</strong>. Sources for the Java
+programming language and the ADB data binding are generated into
+<strong>target/generated-sources/axis2/wsdl2code</strong>. Note the
+configuration element <strong>packageName</strong> above, which sets the
+package name, thus a subdirectory.</p></div><div class="subsection"><a name="Configuration"></a><h3>Configuration</h3><p>The WSDL2Code goal takes the following parameters as input. All parameters
+can be set from the command line by using properties. For example, the
+parameter "generateServerSide" may be set using the property
+"axis2.wsdl2code.generateServerSide". If the parameter isn't set via property
+or in the POM, then a default value applies.</p><table class="bodyTable"><tbody>
+ <tr class="b" align="center"><td><strong>Parameter Name</strong></td><td><strong>Command Line Property</strong></td><td><strong>Description</strong></td><td><strong>Default Value</strong></td></tr>
+ <tr class="a"><td>databindingName</td><td>${axis2.wsdl2code.databindingName}</td><td>Data binding framework, which is being used by the generated
+ sources.</td><td>adb</td></tr>
+ <tr class="b"><td>generateAllClasses</td><td>${axis2.wsdl2code.generateAllClasses}</td><td>Whether to generate simply all classes. This is only valid in
+ conjunction with "generateServerSide".</td><td>false</td></tr>
+ <tr class="a"><td>generateServerSide</td><td>${axis2.wsdl2code.generateServerSide}</td><td>Whether server side sources are being generated.</td><td>false</td></tr>
+ <tr class="b"><td>generateServerSideInterface</td><td>${axis2.wsdl2code.generateServerSideInterface}</td><td>Whether to generate the server side interface.</td><td>false</td></tr>
+ <tr class="a"><td>generateServicesXml</td><td>${axis2.wsdl2code.generateServicesXml}</td><td>Whether a "services.xml" file is being generated.</td><td>false</td></tr>
+ <tr class="b"><td>generateTestcase</td><td>${axis2.wsdl2code.generateTestCase}</td><td>Whether a test case is being generated.</td><td>false</td></tr>
+ <tr class="a"><td>language</td><td>${axis2.wsdl2code.language}</td><td>Programming language of the generated sources.</td><td>java</td></tr>
+ <tr class="b"><td>namespaceToPackages</td><td>${axis2.wsdl2code.namespaceToPackages}</td><td>Map of namespace URI to packages in the format
+ uri1=package1,uri2=package2,... Using this parameter is discouraged.
+ In general, you should use the namespaceUris parameter. However, the
+ latter cannot be set on the command line.</td><td></td></tr>
+ <tr class="a"><td>namespaceURIs</td><td></td><td>Map of namespace URI to packages. Example: <namespaceURIs>
+ <namespaceURI> <uri>uri1</uri>
+ <package>package1</package> </namespaceURI>
+ ........ </namespaceURI></td><td></td></tr>
+ <tr class="b"><td>outputDirectory</td><td>${axis2.wsdl2code.target}</td><td>Target directory, where sources are being
+ target/generated-sources/axis2/wsdl2code generated.</td><td></td></tr>
+ <tr class="a"><td>packageName</td><td>${axis2.wsdl2code.package}</td><td>Package name of the generated sources.</td><td></td></tr>
+ <tr class="b"><td>portName</td><td>${axis2.wsdl2code.portName}</td><td>Port name, for which sources are being generated. By default,
+ sources are generated for all ports.</td><td></td></tr>
+ <tr class="a"><td>serviceName</td><td>${axis2.wsdl2code.serviceName}</td><td>Service name, for which sources are being generated. By default,
+ sources are generated for all services.</td><td></td></tr>
+ <tr class="b"><td>syncMode</td><td>${axis2.wsdl2code.syncMode}</td><td>Sync mode, for which sources are being generated; either of "sync",
+ "async", or "both" (default).</td><td>both</td></tr>
+ <tr class="a"><td>unpackClasses</td><td>${axis2.wsdl2code.unpackClasses}</td><td>Whether to unpack classes.</td><td></td></tr>
+ <tr class="b"><td>wsdlFile</td><td>${axis2.wsdl2code.wsdl}</td><td>Location of the WSDL file, which is read as input</td><td>src/main/axis2/service.wsdl</td></tr>
</tbody></table></div></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2007, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org