Create Zip file in Mule 4
Let’s see how we can create zip file in Mule 4
Create a project and add the listener which will accept the payload in text.
Add a compression module in mule pallet – please see on how we can add the module
Add the archive activity in flow
Please note entries will represent the structure of the target zip
mulesy.txt will be the name of the file in the zip and payload will be it’s content
More info – https://docs.mulesoft.com/compression-module/2.1/
Now we will write a zip file on local drive.
Add the file write activity and update the configuration
File configuration
Add the response message
Run the application
We can see the zip file
Extract the zip file
Sample MuleSoft Application – compression-services
Sample SOAP UI project – compression-services-soapui-project