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

You can use an outbound two-way exchange pattern for Sterling B2B Integrator to send a processed document to B2B Advanced Communications and receive an acknowledgment or a business response later.

You configure the MEIG Messaging Config adapter, Business Document Receiver, and Business Document Sender bridge adapters for the exchange.

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

  1. A Sterling B2B Integrator business process produces the payload.
  2. The Business Document Sender adapter is used to send the BDO message to the queue that B2B Advanced Communications listens on.
  3. B2B Advanced Communications retrieves the message from the queue and adds AS4 information to the message.
  4. The B2B Advanced Communications sends the message to the trading partner.
  5. The trading partner sends an AS4 receipt and reply to B2B Advanced Communications through B2B Advanced Communications.
  6. (Optional) B2B Advanced Communications sends the reply to Sterling B2B Integrator through a queue.
  7. The Business Document Receiver adapter takes the reply from the queue and starts the specified business process in Sterling B2B Integrator to process it.
  8. The business process processes the reply.

Task flow

Use this task flow to configure the adapters for Sterling B2B Integrator to receive messages from a B2B Advanced Communications.

This diagram shows the AS4 2-way push-pull exchange flow from Sterling B2B Integrator to B2B Advanced Communications through a WebSphere® MQ queue, to a trading partner.

Sterling B2B Integrator sends a processed business document to B2B Advanced Communications through a WebSphere MQ queue that B2B Advanced Communications listens on.

B2B Advanced Communications determines which exchange profile to use for the exchange to the trading partner, adds AS4 information, and sends the message to the trading partner.

The trading partner sends a receipt to B2B Advanced Communications. B2B Advanced Communications requests a response from the trading partner and the response to B2B Advanced Communications.

B2B Advanced Communications sends the response and receipt to Sterling B2B Integrator through the queue that Sterling B2B Integrator listens on. The Business Document Receiver adapter receives the response and receipt and calls a business process to process them.

AS4 outbound two-way push-pull exchange
  1. In WebSphere MQ, create the queues that B2B Advanced Communications listens on for exchanges withSterling B2B Integrator. You create thee queues:
    1. The queue B2B Advanced Communications listens on to receive messages from Sterling B2B Integrator. For example, B2BAC_listen_queue
    2. The queue that Sterling B2B Integrator listens on for replies from the trading partner. AS4_bdo_reply_queue. The reply queue is a different queue than the queue that Sterling B2B Integrator listens on to receive messages from B2B Advanced Communications.
    3. 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 B2B Advanced Communications listens on. For example, AS4_bdo_reply_queue_error.
  2. In B2B Advanced Communications,
    1. Associate the queues that you created in WebSphere MQ with B2B Advanced Communications receivers and destinations. The queue that B2B Advanced Communications listens on, for example B2BAC_listen_queue, is a receiver. The queue that Sterling B2B Integrator listens on, for example, AS4_bdo_response_queue, is a destination.
    2. Create an AS4 outbound exchange profile. Specify the receiver and destination that you created as the receiver destination for the exchange profile to use.
  3. In Sterling B2B Integrator, configure the adapters and business process:
    1. Configure the MEIG Messaging Config adapter to connect to the messaging service provider and configure storage information. See Configuring the MEIG Messaging Config adapter.
    2. Configure the Business Document Sender adapter to use the MEIG Messaging Config adapter that you created.
    3. Edit the MEIGAS4OutboundWithReplySample business process in Sterling B2B Integrator to process the document.
    4. Edit the MEIGAS4OutboundSample business process to send the document to the queue that B2B Advanced Communications is listening on.

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 outbound two-way push pull exchange the B2B Advanced Communications.
Table 1. Configuration required for bridge adapters for an AS4 outbound 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 Receiver adapter in Sterling B2B Integrator You must configure the Business Document Receiver adapter.
Business Document Sender adapter Sterling B2B Integrator You must configure the Business Document Sender adapter to send the processed documents from Sterling B2B Integrator to B2B Advanced Communications.
Edit the MEIGAS4OutboundWithReplySample business process in Sterling B2B Integrator You must edit the MEIGAS4OutboundWithReplySample business process in Sterling B2B Integrator to include processing instructions for how you want the document to be processed in Sterling B2B Integrator and the queue information for sending the document to B2B Advanced Communications.
Edit the MEIGAS4OutboundSample business process in Sterling B2B Integrator You must edit the MEIGAS4OutboundSample business process in Sterling B2B Integrator to send the document to B2B Advanced Communications.

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 outbound 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 MEIGAS4OutboundWithReplySample 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 MEIGAS4OutboundWithReplySample business process in Sterling B2B Integrator to process the document and specify the queue to send the document to when processing is finished.
  5. Edit the MEIGAS4OutboundSample business process in Sterling B2B Integrator to send the processed document to B2B Advanced Communications.