Sync-Async Patterns with BPM on SAP NetWeaver Process Orchestration (PRO) are quite easy to implement.
However, when you want to design the integration flow as lean as possible, this document might be useful for you as the usage of the sync/async adapter modules is a bit tricky.
Scenario:
- SOAP Sender (in our example WebShop) is calling SAP PRO synchronously
- The request is forwarded asynchronously via E-Mail to the receiver (typically it would be e.g. IDoc to SAP ERP of course)
This is an example scenario of course. HTTP/SOAP on the (sync) sender side can be combined with any channel on receiver side (IDOC/SOAP/FILE/SFTP/MAIL/JMS/JDBC/…)
Adapter Modules used:
We are using the following (standard) adapter modules:
- AF_Modules/RequestOnewayBean (to convert the synchronous message to an asynchronous one)
- AF_Modules/DynamicConfigurationBean (to store the original message id in the ASMA of the sender channel and read it in the receiver channel to set the correlation)
- AF_Modules/WaitResponseBean (to wait for the reply of the receiver channel)
- AF_Modules/NotifyResponseBean (to send back the message to the waiting sender channel using correlation)
ESR Content (sender side):
- Service Interface Sync Out
- Service Interface Sync In (Dummy)
- Operation Mapping (Service Interface Sync Out -> Sync In)
- Message Mapping (Input Message Type -> Output Message Type)
DIR Configuration:
- Sender System
- SOAP Sender Channel
- SOAP Receiver Channel
- Receiver System
- MAIL Receiver Channel
Screenshots:
It is of course not necessary to do this in NWDS but I really started to like it…
Test & Monitoring:
- Call WebService from WS Navigator
- ASMA (DynamicConfiguration) with MessageId
- E-Mail received from SAP PRO
Comments are closed.