ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/migration/wsmigtechpre.htm

25 lines
2.8 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>Migrate applications developed with Version 5 Web services technology preview</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><A NAME="wsmigtechpre"></A>Migrate applications developed with Version 5 Web services technology preview</h4>
<p>This section describes how to migrate from the Web services technology preview to WebSphere Application Server - Express Version 5.1. </p>
<p>You can normally reuse the Web Services Description Language (WSDL) file. If you created the WSDL file using the <strong>Java2WSDL</strong> command in the Web services technology preview and you encounter problems, regenerate the file. You must regenerate all Java classes generated by the WSDL2Java command in the technology preview. These classes fall into two categories, the development classes and the deployment classes. The development classes include the enterprise beans and exception classes generated by the <strong>WSDL2Java</strong> command. These classes are regenerated by running the <strong>wsdl2java -role develop-client</strong> (or <strong>-role develop-server</strong>) command. The deployment classes include <tt>*Stub.java, *Locator.java, *_Ser.java, *_Deser.java, and *_Helper.java</tt> classes. After you verify that no deployment class source code is included in the application EAR file, you can regenerate the deployment classes either by using the <strong>wsdeploy</strong> command, or by selecting <strong>Deploy Web Services</strong> on the application installation panels of the administrative console. Classes generated by the <strong>WSDL2Java</strong> command are identified by a comment at the top of the source file. You can reuse the original Web service client code and server implementation code. If you have any JAX-RPC handlers, rewrite the code to conform with SAAJ 1.1. For more information, see <a href="http://java.sun.com/xml/saaj/">http://java.sun.com/xml/saaj/</a> <img src="www.gif" width="18" height="15" alt="Link outside Information Center" border="0">. You can reuse the original webservices.xml and webservicesclient.xml deployment descriptors. Any information added to the original ibm-webservices-bnd.xml and ibm-webservicesclient-bnd.xml files need to be migrated to the new ibm-webservices-bnd.xmi and ibm-webservicesclient-bnd.xmi files.</p>
<p>In the Web services technology preview, all application exceptions extended IBM WebServicesFault. Now all application exceptions extend java.lang.Exception to comply with the J2EE specification.</p>
</body>
</html>