You can develop a service endpoint interface from an Enterprise JavaBeans (EJB) for JAX-RPC Web services.
Set up a development environment for Web services. To learn more, see the setting up a development environment for Web services information.
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. See the Web services specifications and API documentation to review the JAX-RPC specification along with a complete list of the supported standards and specifications.
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 assembly tools..
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:
In this information ...Related concepts
Related tasks
| IBM Redbooks, demos, education, and more(Index) |