46 lines
2.7 KiB
HTML
46 lines
2.7 KiB
HTML
|
<!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 <servlet-class> element indicating the Java bean class that implements the service.</li>
|
||
|
<li>Place the WSDL file as specified by the deployment descriptor <wsdl-file> 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 <jaxrpc-mapping-file> 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 <servlet> element including the <servlet-name> element. The <servlet-name> element can be any string and the <servlet-class> element specifies the Java bean class that implements the service.</li>
|
||
|
<li>Place the WSDL file as specified by the webservices.xml deployment descriptor <wsdl-file> element in the WEB-INF/wsdl subdirectory.</li>
|
||
|
<li>Place the JAX-RPC mapping file as specified by the webservices.xml deployment descriptor <jaxrpc-mapping-file> 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>
|