This single Mavenized Mule application contains sample flows that you can extend to handle attachments ('read' as well as 'write') in your request processing.
- attachments-with-rest-as-primary.xml: Contains requests built with REST in mind.
- attachments-with-soap-as-primary.xml: Contains requests built with SOAP in mind.
While this is opened in Aypoint Studio, you may look in the 'Notes' section of individual elements and flows for more information
- Clone the project/Download as zip and extract
- Import as Maven project using pom.xml from Anypoint Studio
This has been tested to work with Mule 3.9.1 EE and has been developed on Anypoint Studio - Tooling for Mule ESB Version: 6.5.1 Build Id: 201810012018
Might need slight changes to work with other versions. If you had to make any changes, please send a pull request.
Contributions are welcome!
- https://www.soapui.org/docs/soap-and-wsdl/attachments.html
- https://stackoverflow.com/questions/21235907/example-for-adding-attachment-to-email-at-mule
- http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleMessage.html#addAttachment(java.lang.String,%20javax.activation.DataHandler)
- http://wiki.cdyne.com/index.php/Main_Page (A great list of usable hosted SOAP services in 2018)
- https://www.appnovation.com/blog/mtom-web-services-mule