Reputation: 249
In my case, I've done the XML payload transform using Java in Mule 3.
But in Mule 4, could we be able to transform the xml payload using Dataweave 2.0.
I have an XML Request and Expected response payload. But I don't know to transform using Dataweave 2.0
Input XML: https://github.com/Manikandan99/demo/blob/master/input_xml_request
Output XML: https://github.com/Manikandan99/demo/blob/master/output_xml
Java code for my logic: https://github.com/Manikandan99/demo/blob/master/transform_xml.java
Note:
* Difference between the input and output payload is that the value of the DTOStep node should be updated.
* The attribute value of DTOStep is autoincremented from 500 each time.
Please assist me.
Upvotes: 1
Views: 874
Reputation: 25837
In generic terms there are two main ways to resolve this in Mule 4.
Upvotes: 2