on 09-03-2009 2:05 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.