Services
A portal service provides processing that is not bound to a specific request. A service can be called by a component or by other services.
For example, the portal provides a transformation service for transforming XML, as well as the EPCF service for creating Javascript in an iView that enables client-side eventing between iViews.
A service cannot be personalized.
You create a portal service by doing the following in a portal application project:
● Write a java class that implements IService. The class includes the IService methods, such as init() and destroy(), as well as custom methods that you want to expose through the service.
You generally create a java class for a service with the help of the portal plug-in to NetWeaver Developer Studio, which creates generic implementations of the standard IService methods. For more information on the plug-in, see SAP NetWeaver Developer Studio Plug-In.
· Modify the deployment descriptor (portalapp.xml file) of the portal application to provide information about the service, such as the name of the service, the name of the implementing class and configuration properties.
For more information, see Creating a Portal Service.