33 lines
1.8 KiB
HTML
33 lines
1.8 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>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>
|