Show TOC

Creating and Modifying the Application ServiceLocate this document in the navigation structure

Use

Once you have imported the CustomerBasicDataByIDQueryResponse_In Web service, you can edit its attributes by mapping it to an application service. You use this approach to simplify the service and reduce the number of input and output parameters available to the end user when executing the application service.

Procedure
  1. In the Composite Application Explorer, expand nodes external → sap_xi_appl_global → External Services of your project and select the CustomerBasicDataByIDQueryResponse_In service.
  2. From the context menu, choose Default mappings.
    Note

    The description shows you how to generate an application service automatically, based on default mappings. Another approach is to create the service and map it to the external service manually.

  3. Select the attributes of the Web service that need to be mapped automatically to the ones of the corresponding application service.
    1. You can simplify both input and output parameter structures by deselecting the parameters that you do not need. For the purpose of the tutorial, simplify the Output Parameters structure as follows:
      • Under OutputParameters → CustomerBasicDataByIDResponse_sync → Customer → BasicData,deselect Common and AddressInformation.
      • Under OutputParameters → CustomerBasicDataByIDResponse_sync, deselect Log.
    2. Unedr Target Application Service, select Create methods in a new Application Service and choose OK.

    Note

    You can view the automatically generated application service CustomerBasicDataByIDQueryResponse_In in the Composite Application Explorer under modeled → Application Services.

  4. Make sure that the application service is open for editing and navigate to the Datasource tab page.
    • If you need to make more changes to attributes, select the operation pair and expand the relevant nodes to view available parameter mappings.

    • To delete a mapping, click the connecting arrow with the secondary mouse button and choose Delete. For the purpose of the tutorial, delete the mapping of the Facsimile attribute.

    • To define additional mappings, map source attributes to the corresponding target attributes or vice versa using drag and drop.
  5. From the project's context menu, choose Save.
  6. 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