cancel
Showing results for 
Search instead for 
Did you mean: 

records split one by one and sent to a webservice - synchronous

dichaudhuri
Explorer
0 Kudos

Hi,

      I need a suggestion on the below workaround.

      My requirement is :- PO is reading a file and splitting the messages based on the number of records in the file. The records are split into multiple messages to hit a Webservice one at a time and the response is also captured in a file. The next payload / record needs to be sent from PO only after the earlier response has reached PO.

    

     I thought of this workaround :

     1.) Read the file split it in the mapping into multiple messages

     2.) Send the first request to NWBPM

     3.) nwBPM sends it to the receiving system and waits for the response

     4.) Once the response is received by NWBPM, send the second data from the file from the BPM to the receiving system.

     5.) We also need to capture the response and we can do it in a file( add date and timestamp) on any Al11 folder.

Is this a good enough solution and feasible enough or we need any other workaround?

Accepted Solutions (0)

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

instead of trying to achieve this in PI using bpm, you can ask web service to accept all records in one shot and provide the response for each record.

request message

record1

record2

...

response message

record1response

record2response

...