cancel
Showing results for 
Search instead for 
Did you mean: 

Multiples payloads in a single message

Former Member
0 Kudos

Hi everybody,

I have a scenario where I will receive multiples payloads in a single message (several email attachments) and I have to call a WebService for each different payload, or email attachment in this case.

Scenario: Mail Sender (multiples attachments/payloads) -> XI -> SOAP Receiver

These attachments in the email are XML files with the same structure (WSDL) that must map it to the WebService.

I'm thinking in receive these payloads using Java Mapping to merge all these XML files in a single fat XML structure and after that use a BPM to do a Loop in order to call the WebService for each part of this fat XML. But I'm not sure if it is the best option and I don't really know how to do this BPM.

Anyone has a suggestion how should I do this?

Regards,

Rogério

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

You need to write an adapter module for merging all the XML attachements in to one. Then you should use 1..n mapping in the BPM for splitting them in to multiple payloads.

BPM - Receive -> Transform (1..N) ->Block -> for each (message) ->send ->close block

VJ