Show TOC

Composing ServicesLocate this document in the navigation structure

Use

Using the Service Composer perspective, you can orchestrate the data coming from different service interfaces into a single, composed service.

Procedure

Starting the Service Composition Wizard

Note

You can start the simplification process from the Composite Designer perspective too.

To start the service composition process from the Service Composer perspective:

  1. Open the Service Composer perspective in the Developer Studio.

    From the menu path, choose Start of the navigation path Window Next navigation step Open Perspective Next navigation step Other... End of the navigation path. In the dialog that appears, choose the Service Composer perspective.

  2. Create a new Service Composer DC.

    From the menu path, choose Start of the navigation path File Next navigation step New Next navigation step Project End of the navigation path. In the dialog that appears, navigate to Start of the navigation path Service Composer Next navigation step Service Composer Development Component End of the navigation path.

    Choose Next .

  3. Open the development configuration and select the software component in which you want to create the new DC. Choose Next .

  4. Specify the required data for the new DC. Choose Finish .

    For more information about the DC's data, see Creating Development Components .

  5. In the Project Explorer view, navigate to Start of the navigation path Service Composition Next navigation step Composed Services End of the navigation path and open the context menu. Choose New Composed Service...

    The service composition wizard is started.

Creating a New Composed Service Using a New Service Interface

  1. In the dialog that appears, choose the Create radio button. Specify a name for the new WSDL file. Choose Next .

  2. Select the service operations to be composed. Choose Finish . Save your composed service.

    The composed service's service operation is opened for editing in the diagram editor. You can continue with adding different sources of data (such as simplified services, RFCs, and so on) to the service flow.

  3. Generate, build and deploy.

Composing the Service Using an Existing Service Interface from a WSDL File

  1. In the dialog that appears, choose the Existing from WSDL radio button. Choose Next .

  2. Choose the location of the service that you want to compose. Choose Next .

  3. If required, specify the connection credentials and manage the connection settings. Then select the service that needs to be composed. Choose Next .

    For more information about connecting to the Enterprise Services Repository (ESR) or to the Service Repository, see Importing WSDL Documents in the SAP NetWeaver Developer Studio .

  4. Select the service operations to be composed. Choose Finish . Save your composed service.

    The composed service's service operation is opened for editing in the diagram editor. You can continue with adding different sources of data (such as simplified services, RFCs, and so on) to the service flow.

  5. Generate, build and deploy.

Note

Note that when you create new composed services, if you try to compose the same service interface twice, you may fall into a situation in which you have two different composed services with the same service name. When you try to deploy them to the same AS Java server, the deployment will fail because you cannot have WSDLs with the same service names on the same server. To solve this issue, you have to open the WSDL editor and change the service name.