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

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

You configure the MEIG Messaging Config and Business Document (BDO) Receiver bridge adapters in Sterling B2B Integrator for the exchange.

This example demonstrates how to use the bridge adapters in an AS4 2-way sync exchange between B2B Advanced Communications and Sterling B2B Integrator.

This diagram shows the AS4 2-way synchronous 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 and sends the message to the trading partner.

AS4 inbound two-way sync 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 Receiver adapter takes the BDO message from the queue and starts the specified business process in Sterling B2B Integrator to process it.
  4. The business process processes the document and forms a response.
  5. Sterling B2B Integrator sends the business response to the B2B Advanced Communications reply queue with the Business Document Receiver adapter.
  6. B2B Advanced Communications sends an AS4 response to the trading partner on the same connection.

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 B2B Advanced Communications 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 listen on the queue and to call the MEGAS4InboundWithReplySample business process in Sterling B2B Integrator when a message arrives.
  6. Edit the MEGAS4InboundWithReplySample business process in Sterling B2B Integrator to process the document. This sample business process can be used as is 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 the 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 Receiver adapter to call the MEGAS4InboundSample business process in Sterling B2B Integrator You must configure the Business Document 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.
Edit the MEGAS4InboundWithReplySample business process in Sterling B2B Integrator You must edit the MEGAS4InboundWithReplySample 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 sync 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 sync 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 MEGAS4InboundWithReplySample business process in Sterling B2B Integrator. See Configuring the Business Document Receiver adapter.
  3. Edit the MEGAS4InboundWithReplySample business process in Sterling B2B Integrator to process the document. See Modifying and Managing Business Process Models.