Before you begin
Set up a Web services development and unmanaged client execution environment.The Service Endpoint Interface defines the Web services methods. The enterprise JavaBean (EJB) that implements the Web service must implement methods having the same signature as the methods of 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 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 Toolkit, which is a component of the Application Server Toolkit. The steps are similar except the Assembly Toolkit automatically compiles the interface when you save it.
Why and when to perform this task
To develop a Service Endpoint Interface:Steps for this task
Results
A Service Endpoint Interface which you can use to develop a Web service.Example
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; }AddressBook_RI
What to do next
Use the Service Endpoint Interface to Develop a WSDL file.