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 AS4 Microservice and Sterling B2B Integrator.
This diagram shows the AS4 2-way synchronous exchange flow from a trading partner, through AS4 Microservice, 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 AS4 Microservice specifies, to AS4 Microservice and back to the trading partner. The exchange starts when trading partner sends the message to AS4 Microservice.

- The trading partner sends an AS4 request to AS4 Microservice.
- AS4 Microservice 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. AS4 Microservice sends an ebMS Receipt to the trading partner.
- 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.
- The business process processes the document and forms a response.
- Sterling B2B Integrator sends the business response to the AS4 Microservice reply queue with the Business Document Receiver adapter.
- AS4 Microservice sends an AS4 response to the trading partner on the same connection.
Task flow
- In WebSphere MQ, create the queues that Sterling B2B Integrator uses for
exchanges with AS4 Microservice:
- The queue Sterling B2B Integrator listens on to receive messages from AS4 Microservice. For example, SI_listen_queue
- 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 Sterling B2B Integrator listens on. For example, SI_listen_queue_error.
- In AS4 Microservice, associate the queues that you created in WebSphere MQ with AS4 Microservice destinations.
- In AS4 Microservice, create and AS4 inbound two-way sync exchange profile. Specify the destination that you created as the destination for the exchange profile to use.
- Configure the MEIG Messaging Config adapter in Sterling B2B Integrator.
- 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.
- 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
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.
- 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 call the MEGAS4InboundWithReplySample business process in Sterling B2B Integrator. See ../configuring/as4/meg_cfg_si_configuring_bdoreceiver_adapter.html.
- Edit the MEGAS4InboundWithReplySample business process in Sterling B2B Integrator to process the document. See Modifying and Managing Business Process Models.