Creating Service Collections and Service
InterfacesTo create a Web service, first you need to create a service collection and a service interface. The service collection (SC) is a component that consists of service interfaces. The service interface consists of one or more Web services.
An EJB is created.
1. In the Service Explorer of the Enterprise Services perspective, open the EJB project and select Services.
2. From the context menu, choose New → Service Collection.
3. In the dialog box, enter names for the package and the service collection and choose Finish.
The service collection is added to the Services node.
4. Select the new service collection and from the context menu, choose New → Service Interface.
5. In the dialog box that appears, specify the package of the EJB project and enter a name for the service interface.
6. In the same dialog box, specify the following elements:
a. Variant name – the name of the design time variant.
b. Variant template – the security template.
c. Endpoint – the bean.
7. Choose Next.
8. In the dialog box that appears, select which methods are to be included in the service interface and choose Finish.
The service interface is added to the service collection.
The service collection and service interface are created. You may now continue with the configuration of the service interface.