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

32 lines
3.0 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>Multipart Web Services Description Language file best practices</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="wswsdlpubbp"></a>Multipart Web Services Description Language file best practices</h3>
<p>WebSphere Application Server - Express supports deployment of Web services using a multipart Web Services Description Language (WSDL) file. That is, WSDL files import other WSDL files when the WSDL file listed in the &lt;wsdl-file&gt; element of the webservices.xml deployment descriptor contains all &lt;wsdl:service&gt; and &lt;wsdl:port&gt; elements. The WSDL file is divided into an implementation WSDL and an interface WSDL.</p>
<p>The &lt;wsdl:import&gt; element indicates a reference to another WSDL file. If the &lt;wsdl:import&gt; element location attribute does not contain a URL, that is, it contains only a file name, and does not begin with http://, https:// or file://, the imported file must be located in the same directory and must not contain a relative path component. For example, if WEB-INF/A_Impl.wsdl is in your module and contains the import statement &lt;wsdl:import=&quot;A.wsdl&quot; namespace=&quot;...&quot;/&gt;, the file, A.wsdl must also be located in the module WEB-INF directory.</p>
<p>It is recommended that all WSDL files be placed in the WEB-INF/wsdl directory if you are using Java beans, even if there are relative imports within the WSDL files. Otherwise, there are implications when the WSDL publication is involved with &lt;location=&quot;../interfaces/A_Interface.wsdl&quot; namespace=&quot;...&quot;/&gt;. Using a path like this fails due to the presence of the relative path, regardless of whether the file is located at that path or not. If the location is a URL, it must be readable at both deployment and server startup.</p>
<p><strong>WSDL publication</strong></p>
<p>The files located in the WEB-INF/wsdl directory can be published through either a URL or file, including WSDL or XSD files. For example, if the file referenced in the &lt;wsdl:file&gt; element of the webservices.xml deployment descriptor is located in the WEB-INF/wsdl directory, it is publishable. If the files imported by the &lt;wsdl:file&gt; are located in the wsd/ directory or its subdirectory, they are publishable.</p>
<p>If the WSDL file referenced by the &lt;wsdl:file&gt; element is located in a directory other than wsdl/, or its subdirectories, the file and its imported files, either WSDL or XSD files, which are in the same directory, are copied to the wsdl/ directory without modification when the application is installed. These types of files can also be published.</p>
<p>If the &lt;wsdl:file&gt; imports a file located in a different directory, the file is not copied to the wsdl/ directory and not available for publishing.</p>
</body>
</html>