While working with CPI Content Modifier to switch the body of a message I am having an issue. I have a CDATA coming in a XML and I need to make the CDATA my new "body" for the iFlow. I assign the CDATA to a property (which I know it Works because I see the property correctly populated in the trace), but the body is not being changed, thus, my iFlows dumps at the moment I reach an XML I see the following error:
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message body as type: interface javax.xml.transform.Source body is: <body itself>.
Can you provide any input? I am really desperate.