Debatching XML messages in ESB ...
300768Mar 30 2008 — edited Apr 8 2008Hi all,
I have an ESB that takes a file input via a file adapter. This file contains multiple messages, however, I do not want to de-batch them as this point (via the file adapter).
I have a routing service that will send this information to multiple sources. Some targets require the information in batch, and others as individual row items.
For example, my input file is processed via the file adapter to the following XML:
<People>
<Person>
<ID>1</ID>
<FNAME>JOHN</FNAME>
<LNAME>SMITH</LNAME>
<PHONE>5552321</PHONE>
</Person>
<Person>
<ID>2</ID>
<FNAME>PETE</FNAME>
<LNAME>SMITH</LNAME>
<PHONE>5552322</PHONE>
</Person>
<Person>
<ID>3</ID>
<FNAME>TIM</FNAME>
<LNAME>SMITH</LNAME>
<PHONE>5552323</PHONE>
</Person>
</People>
One target end-point can take this data in its entirety. The other will need to accept is as individual <Person> nodes for each of the nodes in the document.
I have tried to de-batch the input document in my transformation using a for-each XSL construct. Testing this on the input document produces the correct result, however, when my deployed ESB service runs, it only passes the first entry the the target end-point and the remaining nodes in the document are not passed on, and the target service is not invoked. It appears to only invoke the target service once.
Any ideas??