ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/webserv/wsassemwar.htm

46 lines
2.7 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Assemble a WAR file for your Web services application</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="wsassemwar"></a>Assemble a WAR file for your Web services application</h3>
<p>This topic explains how to use the command-line tools to assemble a Web service-enabled WAR file.</p>
<p>If you converted an existing application in a Web service, perform the following steps to assemble a Web services-enabled WAR file:</p>
<ol>
<li>Expand the WAR file into a directory.</li>
<li>Confirm that the WEB-INF/web.xml descriptor for the Web module contains a &lt;servlet-class&gt; element indicating the Java bean class that implements the service.</li>
<li>Place the WSDL file as specified by the deployment descriptor &lt;wsdl-file&gt; element of webservices.xml file in the WEB-INF/wsdl subdirectory.</li>
<li>Place the JAX-RPC mapping file as specified by the deployment descriptor &lt;jaxrpc-mapping-file&gt; element of webservices.xml in the WEB-INF subdirectory.</li>
<li>Place the webservices.xml and ibm-webservices-bnd.xmi deployment descriptors in the WEB-INF subdirectory.</li>
<li>(Optional) If you developed a service endpoint interface class, place it in a subdirectory corresponding to its Java package.</li>
<li>Run this command to add these files to the WAR file:
<pre>jar -uvf WAR_file com WEB-INF/*</pre></li>
</ol>
<p>If you developed a new Web service application, perform the following steps to assemble a Web services-enabled WAR file:</p>
<ol>
<li>Expand the WAR file into a directory.</li>
<li>Confirm that the WEB-INF/web.xml deployment descriptor for the Web module contains a &lt;servlet&gt; element including the &lt;servlet-name&gt; element. The &lt;servlet-name&gt; element can be any string and the &lt;servlet-class&gt; element specifies the Java bean class that implements the service.</li>
<li>Place the WSDL file as specified by the webservices.xml deployment descriptor &lt;wsdl-file&gt; element in the WEB-INF/wsdl subdirectory.</li>
<li>Place the JAX-RPC mapping file as specified by the webservices.xml deployment descriptor &lt;jaxrpc-mapping-file&gt; element in the WEB-INF subdirectory.</li>
<li>Place the webservices.xml and ibm-webservices-bnd.xmi deployment descriptors in the WEB-INF subdirectory.</li>
<li>Run this command to add these files to the WAR file:
<pre>jar -uvf WAR_file com WEB-INF/*</pre></li>
</ol>
</body>
</html>