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

35 lines
1.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>Develop a Web Services Description Language (WSDL) file</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="wsdevwsdl"></a>Develop a Web Services Description Language (WSDL) file</h3>
<p>You need a Web Services Description Language (WSDL) file to use Web services. You can develop your own WSDL file or get one from a Web service provider. This documentation assumes you are creating your own.</p>
<p>To develop a WSDL file, follow these steps:</p>
<ol>
<li><p>Run the Java2WSDL seiInterface command.</p>
<ul>
<li>Move the WSDL file to the WEB-INF/wsdl subdirectory if you are using a Java bean.</li>
</ul>
<p>A WSDL file named seiInterface.wsdl is created.</p></li>
<li><p>Edit the generated WSDL file and inspect the part names.
<br>The WSDL parts have names like arg_0_0. Modify the WSDL file to use the actual names of the Java parameters.</p></li>
<li><p>(Optional) Use the Java2WSDL command tool to generate the correct part names of WSDL file.
<br>You can automatically generate and set the correct part names by using the Java2WSDL command tool. Generating and setting the part names is done by providing additional information to the Java2WSDL command in the form of a Java implementation class that implements the same methods as the Service Endpoint Interface and is compiled with debug information on (javac -g). Parameter names are stored in the .class file with the debug information. If your implementation class was compiled with debug on, you can use the Java2WSDL -implClass seiImpl seiInterface command to generate a WSDL file with the proper part names.</p></li>
</ol>
</body>
</html>