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

46 lines
3.8 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>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>This topic explains how to configure the webservices.xml deployment descriptor with the WebSphere Studio Development Client for iSeries.</p>
<p>To configure the webservices.xml deployment descriptor, perform the following steps in the WebSphere Studio Development Client for iSeries:</p>
<ol>
<li><p>Start the WebSphere Studio Development Client for iSeries.</p></li>
<li><p>Click <strong>File</strong> --&gt; <strong>Import</strong> to import the WAR file into the WebSphere Studio Development Client for iSeries.</p></li>
<li><p>Open the J2EE perspective by clicking <strong>Windows</strong> --&gt; <strong>Open Perspective</strong> --&gt; <strong>J2EE</strong>.</p></li>
<li><p>Switch to the Project Navigator pane by clicking the <strong>Project Navigator</strong> tab.</p></li>
<li><p>Locate the project that contains the Web service in the Project Navigator pane, and expand it.</p></li>
<li><p>Expand the directories under the project until theWEB-INF directory and its contents appear.</p></li>
<li><p>Right-click the webservices.xml file. Select <strong>Open</strong>. The Web Services editor opens.</p></li>
<li><p>Expand the <strong>Web service descriptions</strong> section.</p></li>
<li><p>Select the service you want to configure.</p></li>
<li><p>Expand the <strong>Web service description implementation details</strong> section.</p></li>
<li><p>Verify that the Web service description name field is unique among all the Web service descriptions in the editor.</p></li>
<li><p>Verify that the <strong>WSDL file</strong> field indicates there is an existing WSDL file in the module. This file, by convention, should be located in the WEB-INf/wsdl directory for a WAR file.</p></li>
<li><p>Verify the <strong>JAX-RPC mapping file</strong> field indicates an existing mapping file within the module. This file, by convention, should be located in the WEB-INF directory for a WAR file.</p></li>
<li><p>Expand the <strong>Port components</strong> section.</p></li>
<li><p>Verify there are port component entries that correspond to the used WSDL ports in the <strong>Port components</strong> section.</p></li>
<li><p>Select a port component to open the editor for that port component. The Port Components editor opens.</p></li>
<li><p>Expand the <strong>Port component implementation details</strong> section.</p></li>
<li><p>Verify that the <strong>WSDL Port Namespace URL</strong> and <strong>WSDL Port Local part</strong> fields are set to the namespace and local name of the corresponding port in the WSDL file. These fields are configured by the WSDL2Java command tool when the webservices.xml file is generated.</p></li>
<li><p>Verify that the <strong>Service endpoint interface</strong> field names the fully qualified Service Endpoint Interface class. This field is configured by the WSDL2Java command when the webservices.xml file is generated.</p></li>
<li><p>Locate the <strong>Service implementation bean</strong> field.</p></li>
<li><p>Configure this field to indicate the servlet that implements the Web service. Select <strong>Servlet</strong> link for a Web module. Use the drop down list in the <strong>Service implementation bean</strong> field to select the servlet that is used to implement the Web service. The choices in the drop down menu come from the servlets that are defined in the web.xml file for a Web module.</p></li>
</ol>
</body>
</html>