Scenario: Configuring the bridge adapters for AS4 inbound two-way push-pull exchanges

You can use an inbound two-way push-pull exchange pattern for Sterling B2B Integrator to process your request and provide an acknowledgment or a business response later.

Configure the MEIG Messaging Config adapter, Business Document Receiver adapter, and Business Document Sender adapter for the exchange.

This scenario demonstrates how to use the bridge adapters in an AS4 inbound two-way push-pull exchange between B2B Advanced Communications and Sterling B2B Integrator.

This diagram shows the AS4 two-way push/pull exchange flow from a trading partner, through B2B Advanced Communications, to the WebSphere® MQ queue that Sterling B2B Integrator listens on, to Sterling B2B Integrator for processing.

The processed document is then sent to a WebSphere MQ queue that B2B Advanced Communications specifies, to B2B Advanced Communications and back to the trading partner. The exchange starts when trading partner sends the message to B2B Advanced Communications.

B2B Advanced Communications processes the AS4 information, creates a business document object, and an ebMS receipt. The ebMS receipt is sent back to the trading partner. The business document object is sent to the queue that Sterling B2B Integrator listens on.

When the business document object arrives at the queue, the Sterling B2B Integrator Business Document Receiver adapter retrieves the message and calls the MEIGAS4InboundWith ReplySample business process to process the document.

After the document is processed, the Sterling B2B Integrator Business Document Sender adapter is used to send the processed document to the WebSphere MQ queue that B2B Advanced Communications specified when it created the business document object.

B2B Advanced Communications adds AS4 information to the message. The trading partner sends a pull request toB2B Advanced Communications. B2B Advanced Communications sends a reply and the trading partner retrieves the message.

AS4 inbound two-way push-pull exchange

In this scenario:

  1. The trading partner sends an AS4 request to B2B Advanced Communications
  2. B2B Advanced Communications removes the AS4 information and converts the payload to a BDO message, and sends the BDO message to the queue for Sterling B2B Integrator to process. B2B Advanced Communications sends an ebMS Receipt to the trading partner.
  3. The Business Document Object Receiver adapter receives the BDO message from the queue and starts the business process that is specified in the adapter configuration in Sterling B2B Integrator.
  4. The business process processes the document and forms a response.
  5. Sterling B2B Integrator sends business response with the Business Document Object Sender adapter to B2B Advanced Communications.
  6. The trading partner initiates a pull request to B2B Advanced Communications. B2B Advanced Communications sends back an AS4 message that includes the business response.
  7. The message that is sent back to B2B Advanced Communications maps the original Message identifier to the reference to message identifier and includes the original conversation identifier.

Task flow

Use this task flow to configure the adapters for Sterling B2B Integrator to receive messages from B2B Advanced Communications through a WebSphere MQ queue:

  1. In WebSphere MQ, create the queues that Sterling B2B Integrator uses for exchanges with B2B Advanced Communications:
    • The queue Sterling B2B Integrator listens on to receive messages from B2B Advanced Communications. For example, SI_listen_queue
    • The error queue that Sterling B2B Integrator uses to send error messages to B2B Advanced Communications. The format for naming this queue is to add _error at the end of the name of the queue that Sterling B2B Integrator listens on. For example, SI_listen_queue_error.
  2. In B2B Advanced Communications, associate the queues that you created in WebSphere MQ with destinations.
  3. In B2B Advanced Communications, create and AS4 inbound two-way sync exchange profile. Specify the destination that you created as the destination for the exchange profile to use.
  4. Configure the MEIG Messaging Config adapter in Sterling B2B Integrator.
  5. Configure the Business Document Receiver adapter to call the MEGAS4InboundSample business process in Sterling B2B Integrator.
  6. Configure the Business Document Object Sender adapter in Sterling B2B Integrator.
  7. Edit the MEGAS4InboundSample business process in Sterling B2B Integrator to process the document. This sample business process can be used to process primary documents that have attachments. Only the primary document is processed. If you want any alternative or extra processing, you can create and edit a copy of this business process.

Configuration requirements

The following table provides information about the configuration that is required to configure the bridge adapters in Sterling B2B Integrator for an AS4 inbound two-way push pull exchange with B2B Advanced Communications.

Table 1. Configuration required for bridge adapters for an AS4 inbound two-way push pull exchange
Configuration Requirement
MEIG Messaging Config adapter in Sterling B2B Integrator You must configure the adapter with the messaging provider information for the messaging provider that you are using.
Business Document Object Receiver adapter to call the MEGAS4InboundSample business process in Sterling B2B Integrator You must configure the Business Document Object Receiver adapter to call a business process when a message arrives in the messaging provider queue. This configuration maps the queue to the business process; all messages that arrive in that queue are processed by the specified business process.
BDOSender adapter Sterling B2B Integrator You must configure the Business Document Object Sender adapter to send the processed documents from Sterling B2B Integrator to B2B Advanced Communications.
Edit the MEGAS4InboundWithResponseSample business process in Sterling B2B Integrator You must edit the MEGAS4InboundWithResponseSample business process in Sterling B2B Integrator to include processing instructions for how you want the document to be processed in Sterling B2B Integrator.

Bridge adapter configuration for AS4 inbound two-way push/pull exchanges

You must have admin permissions in Sterling B2B Integrator to configure the bridge adapters.

Use these steps to configure the bridge adapters for AS4 inbound two-way push/pull exchanges between Sterling B2B Integrator and B2B Advanced Communications:

  1. Configure the MEIG Messaging Config adapter in Sterling B2B Integrator. See Configuring the MEIG Messaging Config adapter.
  2. Configure the Business Document Receiver adapter to call the MEGAS4InboundWithResponseSample business process in Sterling B2B Integrator. See Configuring the Business Document Receiver adapter.
  3. Configure the Business Document Sender adapter Sterling B2B Integrator. See Configuring the Business Document Sender adapter.
  4. Edit the MEGAS4InboundWithResponseSample business process in Sterling B2B Integrator to process the document. This sample business process can be used to process primary documents that have attachments. Only the primary document is processed. If you want any alternative or extra processing, you can create and edit a copy of this business process. See Modifying and Managing Business Process Models.