Start of Content Area

Function documentation Web Service Creation Wizard Locate the document in its SAP Library structure

Use

The Web Service Creation Wizard makes it possible to define a Web service in a few steps. You can create Web services for RFC-enabled function modules, function groups, BAPIs, and XI message interfaces. Features – such as security or transport guarantee settings – are specified using configuration profiles.

When you define a Web service using the WS Creation Wizard, a virtual interface and a Web service definition are created automatically.

Activities

...

       1.      In the Object Navigator (SE80), select the name of the package in which you want to create a Web service. From the context menu, choose Create ® Enterprise Services / Web Services  ® Web Service.

To create a Web service from a function group or function module, you can call the Creation Wizard from the Function Builder (SE37). Choose the function module, display it, then choose Utilities ® More Utilities ® Create Web Service ® From the Function Moduleor From the Function Group.

Note

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

To call the wizard for a BAPI, position the cursor on the appropriate BAPI Explorer (transaction: BAPI). Choose the Tools tab, then choose Create Web Service. Choose the Start Wizard pushbutton.

This graphic is explained in the accompanying text

       2.      Perform the steps indicated in the wizard:

This graphic is explained in the accompanying text

 

Action:

Meaning:

Creating a Virtual Interface

The virtual interface is the interface between the Web service and the outside world.

Enter a name and description for the virtual interface. Choose an endpoint.

If the checkbox Mapping of Names is checked, the wizard accepts the existing names for the endpoint. Initial letters are in upper case and underscores are removed If you do not want to do this, the virtual interface and Web service definition are created with the existing names from the endpoint. 

Choose the endpoint

You choose the object that you want to offer as a Web service. For business objects, enter the application.

Choose operations

For BAPIs and function groups, choose the operations for which the Web service is to be created (see also: Creating a Virtual Interface for a Function Group/BAPI).

Creating a Web service definition

You use the Web service definition to assign features to the Web service. The features are based on, among other things, questions of security in data transfer and on the type of communication.

The Web service definition refers to the virtual interface defined earlier.

Enter a name and description for the WSD.

Choose a predefined feature set from the profiles available.

Basic Auth SOAP profile:

  • Communication type: Stateless
  • Caller authentication: User and password

 

Secure SOAP profile:

  • Communication type: Stateless

·         Authentication: Client certificate

·         Transferred data is encrypted using the Secure Socket Layer protocol.

For more information on the features in the profiles, see Creating a Web Service Definition.

Release the Web service

The system creates the virtual interface and the Web service definition. Finally, you release the Web service for the SOAP Runtime. 

       3.      Assign transport requests (including a Customizing request to configure the SOAP runtime) appropriate to the system configuration.

Result

You have created a Web service. The virtual interface and Web service definition have been generated and released for the SOAP runtime.

The section Administration for the SOAP Runtime explains how you can publish and test the Web service.

 

 

 

 

 

 

 

End of Content Area