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

47 lines
2.5 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 webservicesclient.xml deployment descriptor</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="wsdevddclient"></a>Configure the webservicesclient.xml deployment descriptor</h3>
<p>After you generate the webservicesclient.xml file, you may want to edit some of the values in the file. If the default values that the WSDL2Java generates are acceptable, you do not need to change any of them.</p>
<p>To configure the webservicesclient.xml deployment descriptor, follow these steps:</p>
<ol>
<li><p>Open the webservicesclient.xml deployment descriptor in a text editor.</p></li>
<li><p>For the &lt;description&gt; element in the &lt;service-ref&gt; element, specify a descriptive name for the service that the client accesses.</p>
<p><strong>Note:</strong> If your client uses more than one Web service, you must specify values in the &lt;service-ref&gt; element for each Web service.</p></li>
<li><p>For the &lt;service-ref-name&gt; element in the &lt;service-ref&gt; element, specify the name that the Java Naming Directory Interface (JNDI) uses to locate the service. The JNDI lookup string for this service has this format:</p>
<pre>java:comp/env/<em>service-ref-name</em></pre>
<p>where <em>service-ref-name</em> is . By convention, the value that you specify for <em>service-ref-name</em> should begin with <tt>service/</tt>.</p></li>
<li><p>For the &lt;service-interface&gt; element in the &lt;service-ref&gt; element, specify the class name, including package, of the generated Java interface that is the service interface for this Web service.</p></li>
<li><p>For the &lt;wsdl-file&gt; element in the &lt;service-ref&gt; element, specify the WSDL file name used by this client relative to the root of the module.</p></li>
<li><p>For the &lt;jaxrpc-mapping-file&gt; element in the &lt;service-ref&gt; element, specify the file name of the generated Java mapping file relative to the root of the module.</p></li>
<li><p>For the &lt;service-endpoint-interface&gt; element in the &lt;port-component-ref&gt; element, specify the class name, including package, of the Java interface that is the service endpoint interface for this Web service.</p></li>
</ol>
</body>
</html>