Exposing Web Services as Callable Objects
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:
- Local Web services
- Web services accessed through a provider system
- Web services accessed through a logical destination
- Web services published in the Services Registry (SR)
You invoke the Web service through a Service Group that you create or by choosing an existing one.
For more information about Service Groups, see Managing Service Groups .
To expose the function module as a callable object, you must use the wizard that GP design time provides.
Prerequisites
- To access Web services through a provider system, you must have configured the connection to the provider system.
If you are using GPProcessDiscoveryActiveWSIL , you have to configure the connection to the provider system using a WSIL document to http://<host>:<port>/gpcore/GPProcessDiscoveryActiveWSIL/inspection.wsil
For more information, see Creating Connections to Provider Systems .
- To access Web services through a logical destination, you must have created and configured the required destinations in advance.
For more information, see Configuring Destinations for WS Callable Objects .
- To access Web services through SR, you must have configured the connection to the SR on your system.
For more information, see Configuring the Services Registry .
Procedure
1. Search Web Service Interfaces
- Open the gallery and choose Create Callable Object from the contextual panel.
- 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.
- To open the Define Object screen, choose Next.
- Choose one of the following mechanisms to discover the Web service suitable for the given task.
WSDL URL
You use this option when you want to search for an internal or external Web service, for which you know the precise WSDL URL.
To open the configuration screen, select the WSDL radio button.
- Enter a string that defines the WSDL URL.
- Choose the GO pushbutton.
Logical Destination
You use this option when you want to browse through a set of previously defined WSDL files
To open the configuration screen, select the Logical Destination radio button.
- In the Search for field, enter a search pattern.
- From the Logical Destination dropdown menu, select a provider system.
- Choose Search.
The list with the Web service interfaces on the provider system appears in the Result table below.
- Select an interface and choose the Accept pushbutton.
Provider System
You use this option to select a provider system from the landscape and browse the Web services available on this system.
To open the configuration screen, select the Provider System radio button.
- In the Search for field, enter a search pattern.
- From the Provider System dropdown menu, select a provider system.
- Choose Search.
The list with the Web service interfaces on the provider system appears in the Result table below.
- Select an interface and choose the Accept pushbutton.
Service Registry
You use this option when you want to call an internal or external Web service whose corresponding WSDL is published in the SR.
For more information about publishing Web services, see Publishing to the Services Registry .
To open the configuration screen, select the Service Registry radio button.
From the list with available interface operations, choose an operation
The operation parameters are displayed in the right-hand part of the screen.
2. Choose Service Group
- Choose one of the following options:
- Select an existing Service Group
Choose the Choose pushbutton and from the Choose Existing dropdown menu, select a Service Group.
- Create a new Service Group
- Choose the Create pushbutton and in the Name field, specify a name for the Service Group.
- In the Description field, enter a brief description of the group.
For more information about Service Groups, see Managing Service Groups .
- Select an existing Service Group
- To save the Service Group, choose OK.
3. Expose the Web Service
- To open the Define Input screen, choose the Next pushbutton.
The input parameters of the Web service are automatically detected.
- To open the Define Output screen, choose the Next pushbutton.
The output parameters of the Web service are automatically detected
- Choose Next, and then Finish and Open.
The callable object design time opens. You can edit the object definition here.
- To activate the object, choose
(Activate).
Result
Now you must configure the Service Group in the NWA. For more information, see Configuring Groups of Web Service Clients .
Example
For an example of exposing a Web service as a callable object, see Importing a Web Service in Guided Procedures .