Show TOC Start of Content Area

Procedure documentation Creating a Service Definition  Locate the document in its SAP Library structure

Use

You create a Web service so that users can access functions that were developed as an RFC-enabled function module, function group, BAPI, or XI message, and even functions located in a different system.

The Service Wizard enables you to create a service definition in a few steps. You can create Web services for RFC-enabled function modules, function groups, BAPIs, and service interfaces. You assign features that pertain, for example, to security or transport guarantees using configuration profiles.

Prerequisites

To create and bind Web services, you need the appropriate authorization.

Procedure

Um Wählen Sie im Object Navigator (In the context menu choose Create ® Enterprise Service and then Service Provider  ® Existing ABAP Objects (Inside Out).

For function groups and function modules, you can call the wizard from the Function Builder (SE37). Choose the required function module, display it, and then choose Utilities ® More Utilities ® Create Web Service ® From the Function Module or From the Function Group.

Note

Remember that the function group must contain at least one RFC-enabled function module.

Perform the following steps in the wizard:

       2.      Führen Sie die im Service Wizard angezeigten Schritte durch:

Action:

Function:

Create a Service

Enter a name and short text for the service definition. Choose an end point type.

Choose End Point

Choose the object that you want to provide as a Web service. For BAPIs, enter the application.

If the checkbox Name Mapping is marked, the wizard accepts the existing names for the end point. Initial letters are in uppercase and underscores are removed. If this is not required, create the service definition using the names in the end point.

Choose Operations

For BAPIs and function groups, choose the operations for which the Web service is to be created.

With Delete Line you can exclude operations of a BAPI or a function group that should not be provided in the service definition. At least one operation must be retained.

Configuring a Service

The features that can be assigned here to the Web service relate to questions of security of data transfer and the type of communication.

Choose a predefined feature set from the profiles available.

      PRF_DT_IF_SEC_HIGH
Authentication using certificates and transport guarantees

      PRF_DT_IF_SEC_LOW
Authentication using user ID and password, no transport guarantee

      PRF_DT_IF_SEC_MEDIUM
Authentication using user ID and password and transport guarantee

      PRF_DT_IF_SEC_NO
No authentication and no transport guarantee

For more information on the features in the profiles, refer to the section Editing a Service Definition.

You can change the configuration assignments you have made here at a later date.

Choose Deploy Service to release the service for runtime.

Note

The input field SOAP Application will appear if you have entered the parameter S_APPL_CHOICE in the Parameters tab in the initial menu System ® User Defaults ® Own Data. You can choose between Runtime 7.0 and Runtime 7.1. For more information, refer to Creating Consumers/Providers for the Enterprise Services Repository 7.1.

Enter Package/Transport Request

Enter the name of the package and the transport request number. You do not need a transport request for local objects.

Complete

The service definition is created.

...

Result

You have created a Web service.

You can display and edit the service definition in the Object Navigator in the package you selected under Enterprise Services ® Service Provider. More information: Editing a Service Definition

Start the SOA Manager. Choose the pushbutton Start SOAMANAGER for Configuration in the Object Navigator. For more information, refer to the next section: Configuring a Service Provider (Point 5 onwards)

 

 

 

End of Content Area