You can develop a service endpoint interface from an Enterprise JavaBeans (EJB) for a JAX-RPC Web service. Set up a development environment for Web services.
This task is a required step in developing a Java API for XML-based RPC (JAX-RPC) Web service from an enterprise bean.
The service endpoint interface defines the Web services methods. The enterprise beans that implements the Web service must implement methods having the same signature as the methods of the service endpoint interface. A number of restrictions exist on which types to use as parameters and results of service endpoint interface methods. These restrictions are documented in the Java API for XML-based remote procedure call (JAX-RPC) specification, which is available through Web services: Resources for learning.
The easiest method for creating the service endpoint interface for an EJB Web service implementation is from the EJB remote interface.
You can also create a service endpoint interface by using the assembly tools.
Use the name of the service endpoint interface class in the javac command for the class to compile.
Ensure that the j2ee.jar file is in your CLASSPATH to compile the interface. The JAR file is located in the /QIBM/ProdData/WebSphere/AppServer/V6/product/lib/j2ee.jar directory path.
package addr; public interface AddressBook_RI extends javax.ejb.EJBObject { /** * Retrieve an entry from the AddressBook. * *@param name the name of the entry to look up. *@return the AddressBook entry matching name or null if none. *@throws java.rmi.RemoteException if communications failure. */ public addr.Address getAddressFromName(java.lang.String name) throws java.rmi.RemoteException; }Use the following steps to create the service endpoint interface with the AddressBook_RI remote interface: