Splitting inbound message by item count
I have ERP (SOAP XI) -> PI -> Third-Party (SOAP HTTP) Scenario.
From ERP I get message with 1 million items. I want to split this message, send to Third-Party two messages with 500000 items in each.
this is standart issue i think, but.. I will be appreciate for link or how-to guide