In this chapter, we learned how to work with the payload of messages to adapt it to our requirements. We saw the use of different tools in relation to the target that we need to cover, because if we want to create a new payload, we'll use the PayloadFactory mediator. Meanwhile, if we want to change small things in the payload, we will use the Enrich mediator instead.
As we saw in the chapter, we can easily modify the content of the payload using the PayloadFactory mediator or the Enrich mediator without needing to have advanced knowledge of transformation languages such as XSLT or XQuery. However, these languages will be useful when we have complex transformations, and we want to use the XSLT/FastXSLT or XQuery mediator.
In the next chapter, we will see the different techniques and tools that we have for adding conditional routing to our services. This will give us...