This is the latest release in the 6.x.x family. For EI 7.0.0, click here.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This sample demonstrates how the ForEach mediator can be used to transform a payload.

...

curl -d @stockQuoteReq.xml -H "Content-Type: application/soap+xml;charset=UTF-8" "http://localhost:8280/"

Analyzing the output

The ForEach mediator splits the message to four different elements based on the evaluation of the //m0:getQuote/m0:request expression. The PayloadFactory mediator produces a result as shown in the following console log.

...