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

33 lines
1.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>Develop a service endpoint interface</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="wsdevsei"></a>Develop a service endpoint interface</h3>
<p>The service endpoint interface defines the Web services methods. The Web service implementation must implement methods that have the same signature as the methods on the service endpoint interface. There are a number of restrictions on which types to use as parameters and results of service endpoint interface methods. These restrictions are documented in the <a href="http://java.sun.com/xml/downloads/jaxrpc.html#jaxrpcspec1" target="_">Java API for XML remote procedure call (JAX-RPC) specification</a>. <img src="www.gif" width="18" height="15" align="absbottom" alt="Link outside Information Center" border="0"></p>
<p>If the Web service implementation is a Java bean, develop the service endpoint interface from the bean or an interface the bean implements.</p>
<p>To develop a service endpoint interface, follow these steps:</p>
<ol>
<li><p>Create a Java interface that contains the methods that you want to include in the service endpoint interface.
<br>The interface should extend the java.rmi.Remote interface. Each method throws the java.rmi.RemoteException exception. If you start with an existing Java interface, remove any methods that do not conform to JAX-RPC.</p></li>
<li><p>Compile the interface.
<br>You need /QIBM/ProdData/WebASE/ASE5/lib/j2ee.jar in your CLASSPATH to compile the interface.</p></li>
</ol>
</body>
</html>