Scenario: Configuring the bridge adapters for AS4 outbound two-way sync exchanges
You can use an outbound two-way synchronous exchange pattern to send documents to a trading partner with AS4 and get a response.
The documents are processed in Sterling B2B Integrator and sent to AS4 Microservice. AS4 Microservice creates the AS4 information, sends the message to the trading partner, and gets the response from the trading partner. You configure the MEIG Messaging Config, Business Document Sender, and Business Document Receiver bridge adapters in Sterling B2B Integrator for the exchange.
This scenario demonstrates how to use the bridge adapters in an AS4 outbound two-way sync exchange between AS4 Microservice and Sterling B2B Integrator.
This diagram shows the AS4 2-way synchronous exchange flow from Sterling B2B Integrator to AS4 Microservice through a WebSphere® MQ queue, to a trading partner.
Sterling B2B Integrator sends a processed business document to AS4 Microservice through a WebSphere MQ queue that AS4 Microservice listens on.
AS4 Microservice 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 and response to AS4 Microservice.
AS4 Microservice 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.

- A Sterling B2B Integrator business process produces the payload.
- The Business Document Sender adapter is used to send the BDO message to the queue that AS4 Microservice listens on.
- AS4 Microservice retrieves the message from the queue, determines which exchange profile to use for the document, and adds AS4 information to the message.
- The AS4 Microservice sends the message to the trading partner.
- The trading partner sends an AS4 receipt and response to AS4 Microservice through AS4 Microservice.
- (Optional) AS4 Microservice sends the response to Sterling B2B Integrator through a queue.
- The Business Document Receiver adapter takes the response from the queue and starts the specified business process in Sterling B2B Integrator to process it.
- The business process processes the response.
Task flow
- In WebSphere MQ, create the queues thatAS4 Microservice listens on for exchanges withSterling B2B Integrator . You
create three queues:
- The queue AS4 Microservice listens on to receive messages from Sterling B2B Integrator. For example,
B2BAC_listen_queue
- The queue that Sterling B2B Integrator listens on for responses from the trading partner (AS4_bdo_response_queue). The response queue is a different queue than the queue that Sterling B2B Integrator listens on to receive messages from AS4 Microservice.
- The error queue that Sterling B2B Integrator uses to
send error messages to AS4 Microservice. The format for naming this queue is to add
_error
at the end of the name of the queue that AS4 Microservice listens on. For example,AS4_bdo_response_queue_error
.
- The queue AS4 Microservice listens on to receive messages from Sterling B2B Integrator. For example,
- In AS4 Microservice,
- Associate the queue that AS4 Microservice listens on with the exchange profile receiver in AS4 Microservice. For example, the queue that AS4 Microservice listens on,
B2BAC_listen_queue
, is a receiver. - Associate the queue that Sterling B2B Integrator listens
on with the exchange profile destination in AS4 Microservice. For example, the queue that Sterling B2B Integrator listens
on,
AS4_bdo_response_queue
, is a destination. - Create an AS4 outbound exchange profile. Specify the receiver and destination that you created as the receiver and destination for the exchange profile to use.
- Associate the queue that AS4 Microservice listens on with the exchange profile receiver in AS4 Microservice. For example, the queue that AS4 Microservice listens on,
- In Sterling B2B Integrator, configure the adapters and business process:
- Configure the MEIG Messaging Config adapter to connect to the messaging service provider and configure storage information. See ../configuring/as4/meg_cfg_si_configuring_meg_messaging_config_adapter_bridge.html.
- Configure the Business Document Sender adapter to use the MEIG Messaging Config adapter that you created.
- Configure the Business Document Receiver adapter to use the MEIG Messaging Config adapter to listen on the response queue (AS4_bdo_response_queue), and to start a business process to process the response.
- Edit the MEIGAS4Outbound business process in Sterling B2B Integrator to process the document and use the Business Document Sender adapter to send the processed document to AS4 Microservice.
- Create a business process to send the document to the queue that AS4 Microservice is listening on.
Configuration requirements
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 to listen for responses and start business process to process responses. |
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 AS4 Microservice. |
Edit the MEIGAS4OutboundWithResponse business process in Sterling B2B Integrator | You must edit the MEIGAS4OutboundWithResponse 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 AS4 Microservice. |
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 AS4 Microservice. |
Bridge adapter configuration for AS4 outbound two-way sync exchanges
You must have admin permissions in Sterling B2B Integrator to configure the bridge adapters.
- Configure the MEIG Messaging Config adapter in Sterling B2B Integrator. See ../configuring/as4/meg_cfg_si_configuring_meg_messaging_config_adapter_bridge.html.
- Configure the Business Document Receiver adapter to listen on the response queue and call the MEIGAS4OutboundWithResponseSample business process to process the response from the trading partner. See ../configuring/as4/meg_cfg_si_configuring_bdoreceiver_adapter.html.
- Configure the Business Document Sender adapter Sterling B2B Integrator. See ../configuring/as4/meg_cfg_si_configure_bdosend_adapter.html.
- Edit the MEIGAS4OutboundWithResponseSample business process in Sterling B2B Integrator to process the document and specify the queue to send the document to when processing is finished.
- Edit the MEIGAS4OutboundSample business process in Sterling B2B Integrator to send the processed document to AS4 Microservice.