ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/webserv/wsdevddweb.htm

42 lines
2.9 KiB
HTML
Raw Permalink 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>Configure the webservices.xml deployment descriptor</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="wsdevddweb"></a>Configure the webservices.xml deployment descriptor</h3>
<p>To configure the webservices.xml deployment descriptor, follow these steps:</p>
<ol>
<li><p>Open the webservices.xml deployment descriptor in a text editor.</p></li>
<li><p>Specify appropriate values for the file elements.
<br>Most of the file elements contain default values. Elements that do not have default values are flagged with &quot;??&quot; in the XML file. Set values for these elements:</p>
<ul>
<li><p>The &lt;webservice-description-name&gt; element
<br>This name must be unique within the XML file if there are multiple webservice-description elements. This name is used as part of the directory structure for naming published WSDL files when publishing files during deployment.</p></li>
<li><p>The &lt;wsdl-file&gt; element
<br>Change the tag element from the full path within the Web archive (WAR) file to the WSDL file defining the Web service being implemented. By convention, the WSDL file is placed in the WEB-INF/wsdl subdirectory for Web modules.</p></li>
<li><p>The &lt;jaxrpc-mapping-file&gt; element
<br>Set this element to the full path within the WAR file to the generated Java API for XML-based remote procedure call (JAX-RPC) mapping file. By convention, the mapping file is placed in the WEB-INF subdirectory for Web modules.</p></li>
<li><p>The &lt;port-component-name&gt; element
<br>Change the element to a string that uniquely identifies the port within the module.</p></li>
<li><p>The &lt;wsdl-port&gt; element
<br>This identifies the port in the WSDL file that corresponds to this deployment descriptor port. The &lt;namespaceURI&gt; subelement indicates the namespace portion of the WSDL port name. Set this element to the namespace of the matching port in the WSDL file identified by the &lt;wsdl-file&gt; element. This namespace is typically the target namespace in the WSDL file. The &lt;localpart&gt; subelement indicates the local portion of the WSDL port name. Set this element to the name of the matching WSDL port.</p></li>
<li><p>The &lt;service-endpoint-interface&gt; element
<br>Set this element to the class name, including package, of the Java interface that is the Service Endpoint Interface for the Web service.</p></li>
<li><p>The &lt;service-impl-bean&gt; tag (if the Web service implementation is a Java bean in a Web module)
<br>Set the &lt;servlet-link&gt; element to reference the bean that implements the methods of the Service Endpoint Interface.</p></li>
</ul><p></p></li>
</ol>
</body>
</html>