Using the Service Composer perspective, you can orchestrate the data coming from different service interfaces into a single, composed service.
Starting the Service Composition Wizard
You can start the simplification process from the Composite Designer perspective too.
To start the service composition process from the Service Composer perspective:
Open the Service Composer perspective in the Developer Studio.
From the menu path, choose Service Composer perspective.
. In the dialog that appears, choose theCreate a new Service Composer DC.
From the menu path, choose
. In the dialog that appears, navigate to .Choose Next .
Open the development configuration and select the software component in which you want to create the new DC. Choose Next .
Specify the required data for the new DC. Choose Finish .
For more information about the DC's data, see Creating Development Components .
In the Project Explorer view, navigate to New Composed Service...
and open the context menu. ChooseThe service composition wizard is started.
Creating a New Composed Service Using a New Service Interface
In the dialog that appears, choose the Create radio button. Specify a name for the new WSDL file. Choose Next .
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.
Generate, build and deploy.
Composing the Service Using an Existing Service Interface from a WSDL File
In the dialog that appears, choose the Existing from WSDL radio button. Choose Next .
Choose the location of the service that you want to compose. Choose Next .
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 .
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.
Generate, build and deploy.
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.