Show TOC Start of Content Area

Procedure documentation Creating and Modifying the Application Service  Locate the document in its SAP Library 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.

Recommendation

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.

This graphic is explained in the accompanying text

       3.      Select the attributes of the Web service that need to be mapped automatically to the ones of the corresponding application service.

                            a.      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.

                            b.      Unedr Target Application Service, select Create methods in a new Application Service and choose OK.

This graphic is explained in the accompanying text

Note

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

This graphic is explained in the accompanying text

       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.

This graphic is explained in the accompanying text

       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.

This graphic is explained in the accompanying text

       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

Next Step

Configuring Web Service Clients to Connect to a Provider System

End of Content Area