Exposing Application Services or Business Objects as Web Service
Prerequisites
Your have created at least one application service or business object operation.
Application Server (AS) Java is up and running.
You have generated your application.
Context
To reuse the business logic stored in your application services or business objects, you can expose them as a Web service. You can configure Web service Reliable Messaging (WS-RM) for the application service operations you want to expose as Web services. Reliable messaging is enabled on an operational level and is disabled by default. It works only for operations that have no output and faults.
Procedure
In the Composite Application Explorer, click the node of the application service or the business object you want to expose with the secondary mouse button and choose Expose Service as Web Service. The new Web service appears in the Composite Application Explorer.
In the Select service operation window, choose the operations to be exposed.
To add new business object or application service operations to the exposed Web service, click it with the secondary mouse button and choose Edit.
To enable reliable messaging for this operation, enable the WS-RM indicator on the Existing Operation pane of the Operations tab page.
To modify the generated service implementation of particular methods, open the Implementation tab page and click the Java implementation file.
Save, generate, build and deploy your application. During generation, CAF produces the matching WSDL document, a skeleton of the service implementation, and a service endpoint interface (SEI), reflecting the WSDL definition and referencing the WSDL document. To view the location of the WSDL on the local file system, click it with the secondary mouse button and from the context menu, choose WSDL Document Location.
Results
After you have exposed your Web service, you can publish it in the Service Registry.