Show TOC Start of Content Area

Procedure documentation Exposing Web Services as Callable Objects  Locate the document in its SAP Library structure

Use

Web services are Web interfaces that are based on open and commonly accepted standards and can be integrated into a company’s business scenarios. Using Web services enables you to combine functions implemented in different software components into a single process.

You can expose any web service as a callable object using Guided Procedures (GP) design time. The integration into the GP framework is done transparently by the system.

To expose the function module as a callable object, you must use the wizard that GP design time provides.

Caution

Currently Web Service callable objects support the following SOAP encoding styles:

§         SOAP Remote Procedure Call Literal encoding (SOAP RPC-literal)

§         SOAP document-style encoding, which is also known as message-style or document-literal encoding

Prerequisites

·        You have created and configured a logical destination to access the required Web services.

See Configuring Logical Destinations for WS Callable Objects.

·        You need to know a precise WSDL URL for internal or external Web services that do not require authentication.

Procedure

       1.      Open the gallery and choose Create Callable Object from the contextual panel.

       2.      Enter the required basic data as follows:

Parameter

Description

Type

Choose Service Web Service.

Name

Enter a name that is used to distinguish the callable object in the gallery. You are not required to use a unique name for the callable object.

Description

Describe the callable object by entering a brief description of its functions.

Original Language

Select the original language in which the callable object is being created.

Folder

Select the folder where the callable object is stored.

Note

You can either use an existing folder, or create a new one.

       3.      To open the Define Object screen, choose Next.

You can choose one of the following options:

Option

Description

Configuration

Case 1: WDSL URL Select

WSDL URL

 

You use this option when you want to call internal or external Web services that do not require any security information.

Note

If you are behind a proxy and you want to call an external service, then you should configure your proxy in the Visual Administrator, in the Web Service Container settings.

Enter a string that defines the WSDL URL and press ENTER.

Case 2: Logical Destination Select

Logical Destination

 

You use this option when you want to:

·        Choose from a set of previously defined WSDL files

·        Call Web services that need authentication.

·        Call ABAP Web services.

Note

To be able to choose a logical destination, you should have created one. For more information, see Configuring Logical Destinations for WS Callable Objects.

 

To open the configuration screen, choose Select.

...

                            a.      From the Destination dropdown box, select a Web service destination.

                            b.      You can search for logical destination interfaces by namespace or by pattern.

                            c.      Choose Search.

The list with the logical destination interfaces appears below.

                            d.      Select an interface.

                            e.      To view details about the selected interface, set the Show Additional Info indicator on the right.

                              f.      Choose Accept.

       4.      On the Web Service Properties screen, select one of the following:

       A port from the Interface Port Name dropdown box

       A logical destination (if any)  from the Logical Destination Endpoint dropdown box.

       5.      From the list with the available interface operations, choose an operation.

The operation parameters are displayed in the right-hand part of the screen.

Example

For each particular Web service, different operations are available, for example:

       StartProcess is an operation defined for the GPProcessDiscoveryWSIL Web service. It creates an instance of a process template.

For more information, see Consuming the GPProcessDiscovery Web Services.

       CompleteAction is defined for the GPActionDiscoveryWSIL Web service and completes a process step.

For more information, see Consuming the GPActionDiscoveryWSIL Web Service.

       6.      To open the Define Input screen, choose Next

The input parameters of the web service are automatically detected.

       7.      To open the Define Output screen, choose Next.

The output parameters of the web service are automatically detected

       8.      Choose Next, and then Finish and Open.

The callable object design time opens. You can edit the object definition here.

Note

In case of a change in the definition of the Web service you have exposed, you can update the existing callable object through the GP design time. On the Object Definition tab page, choose Update to update input, output, configuration parameters, result states, and exceptions defined for the selected operation.

To check for parameter compatibility, choose Check.

       9.      To activate the object, choose This graphic is explained in the accompanying text(Activate). 

Example

For an example of exposing a Web service as a callable object, see Importing a Web Service in Guided Procedures.

End of Content Area