Work with specific protocols and standards > Web Services > Web Services consumer configuration

Web Services consumer configuration

The purpose of a Web Service consumer mode configuration is to enable Activator to connect to a Web Service that is exposed by a remote provider. You can inject the data that you retrieve in the form of a Web Service response directly into Activator processing flows.

In this mode, Activator behaves as a client requesting a service from a remote server.

Overview of the configuration

To set up Activator to consume Web Services from a remote Web Service provider, you use the provider's WSDL in the Activator user interface to generate information for the exchange.

Illustration and description

The following figure illustrates schematically how Activator processes requests to remote Web Service Providers:

How B2Bi processes requests to remote Web Service providers.

In the context of an Activator exchange between two endpoints (application or partner exchange participants), we configure a component with a Web Services map to collect data through a Web Service interface. During the message processing, Activator:

  1. Applies the processing of the Web Services map. This map uses the Web Services connection that is linked to the Web Services delivery.
  2. Opens a connection to the Web Service provider using the Web Services partner delivery.
  3. Applies the outbound collaboration settings to control how the Web Service request is sent to the Web Service provider partner.
  4. Submits the request.
  5. Consumes the response.
  6. Closes the connection to the Web Service provider.
  7. Continues the configured message processing of the participant-to-participant exchange (using the response).

Prerequisites

To complete the Web Service consumer configuration you require:

Order of tasks

  1. Task 1: Add a community
  2. Task 2: Add a partner
  3. Task 3: Add a Web Service trading delivery and Web Service connection
  4. Web Services consumer configuration

Task 1: Add a community

Add a Community to represent your organization as a trading endpoint. See Add a community.

Task 2: Add a partner

Add a partner to represent the Web Services provider server. See Add a partner to a community.

Task 3: Add a Web Service trading delivery and Web Service connection

About this task

A trading delivery is an object that specifies how you want your local community to send messages over the Internet to a remote partner. For Activator Web Services consumer mode, Activator uses the Web Services trading delivery in a special way.

Activator enables you to configure message processing in such a way that you can open a connection to a Web Service provider in the course of a message-processing sequence. Activator essentially pauses message processing for the time it takes to open a connection and launch a request/response exchange with the Web Service provider. Once the requested data is obtained, Activator resumes the message processing sequence.

In order to open the Web Service connection, the processing resource calls the Web Service type trading delivery in order to use the connection information it contains.

In this Web service consumer case, the trading delivery is not used in a standard way to deliver a message at the end of message processing.

The following procedure describes how to::

In this procedure you are aided by a wizard that parses connectivity and message format information from the Web Service provider's WSDL.

Prerequisites

Procedure

  1. In the user interface select Partners > Manage partners to open the Partners page.
  2. Select the partner you want to use to represent the Web Service provider.
  3. On the partner graphic, click the Partner delivery icon.
  4. On the Partner deliveries page, click Add a delivery.
  5. On the Choose a message protocol page, select Web Services (HTTP) and click Next.
  6. On the Choose configuration type page, select Configure delivery by parsing a WSDL, if you have a WSDL file available on your file system, and click Next.
  7. On the same page, select one of the following:
  8. Click Next.
  9. On the Choose community page, select the community that represents your organization as a Web Service consumer, and then click Next. The communities you see in the drop-down list are communities that are currently linked to the partner.
  10. On the Processing connection page, complete the following fields and then click Next:
  11. On the Choose transport protocol page accept the default HTTP protocol and click Next.
  12. On the Configure the HTTP settings page, complete the fields and then click Next:
  13. On the Exchange Name page, enter a name for this delivery. This is the friendly name that is used to identify this delivery in the user interface.
  14. Click Finish.

After you complete this procedure

Related topics