Before you begin
Access an existing Java bean WAR file.
Set up a Web services development and unmanaged client execution environment.The Service Endpoint Interface defines the methods for a particular Web service. The Java bean implementation must implement methods having 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 Java API for XML-based remote procedure call (JAX-RPC) specification, which is available through Web services: Resources for learning.
You can also create a Service Endpoint Interface by using the Assembly Toolkit, which is a component of the Application Assembly 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 for a Java bean implementation:Steps for this task
Results
A Service Endpoint Interface which you can use to develop a Web service.Example
This example uses a Java interface called AddressBook. The following example depicts the AddressBook interface:
package addr; public interface AddressBook { /** * 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); }
You use the AddressBook Java interface to create the Service Endpoint Interface:
What to do next
Use the Service Endpoint Interface to Develop a Web Services Description Language (WSDL) file.