Show TOC Start of Content Area

Procedure documentation Consuming ES Workplace Web Services in CAF  Locate the document in its SAP Library structure

Use

In an Enterprise Service-Oriented Architecture (SOA), you have one or more service providers on one side and a set of service consumers on the other. Providers offer certain business functions as services and publish their interfaces.

One such provider is the Enterprise Service (ES) Workplace of the SAP Developer Network (at sdn.sap.com Enterprise SOA Explore Enterprise Services). It contains services provided by various SAP Business Suite Process components. These services are organized and can be accessed through the ES Workplace Services Registry (SR).

When designing your composite applications with the Composite Application Framework (CAF), you can easily consume existing enterprise services, and map them to customizable application services that fit your particular needs. In addition, CAF allows you to edit the services in an entirely model-driven manner, which ensures flexibility, reusability, ease of development, and increased development productivity.

This tutorial shows you how to access the ES Workplace Services Registry and use enterprise services in CAF applications. It offers an end-to-end scenario for importing, simplifying and testing an ES Web service (WS) in your composite application.

Prerequisites

·        You have access to the ES Workplace Services Registry.

You must have applied for a user account at http://www.sdn.sap.com/irj/sdn/esareg.

·        You have access to an Application Server (AS) Java installed and running.

·        You have installed SAP NetWeaver Developer Studio and opened the Composite Application perspective.

·        You have the necessary permissions to work with CAF Administrative and Test tools.

Procedure

...

       1.      Create a development component (DC) of type Composite Application and enter the following project details:

Vendor: demo.sap.com

Name: es_service_test

Caption: ES Service in CAF

More information about DC configuration: Creating Composite Application Development Components

       2.      Configure the connection of your SAP NetWeaver Developer Studio to the ES Workplace Services Registry.

                            a.      Configure the connection to the Service Registry under Windows Preferences Web Services Service Registry and enter the following details:

       enter sr.esworkplace.sap.com in the Server field

       enter 80 in the Port field

       choose Apply

                            b.      If you use proxy, configure the proxy settings under Windows Preferences General Network Connections:

Proxy host: proxy
Proxy port: 8080

       3.      Locate and import the required Web service as an external service.

Example

In this tutorial, you need to import the CustomerBasicDataByIDQueryResponse_In service defined for the Customer business object. It is designed to read customer basic data by ID.

More information: Importing the Web Service

       4.      Create an application service, map it to the external service automatically or manually, and modify it according to your specific requirements.

More information: Creating and Modifying the Application Service

       5.      Save, generate, build and deploy the application by choosing the relevant options from the project’s context menu.

Make sure you have configured access to a running AS Java and that you have the required user permissions for deployment.

More information about AS Java configuration: Configuring the Application Server in the Developer Studio

       6.      Make the relevant configuration at runtime.

More information: Configuring Web Service Clients to Connect to a Provider System

       7.      Test the service.

More information: Testing the Application Service

End of Content Area