Mule http:outbound-endpoint + multipart/form-data
I'm trying to call a rest service that expects to receive a multipart/form-data and I am facing some issues with this. After a while searching, I've understood that I had to move the payload to an outbound attachment and set the payload to null. <expression-component><![CDATA[ ds = new org.mule.message.ds.StringDataSource(formdata,'payload','multipart/form-data'); dh = new javax.activation.DataHandler(ds); message.outboundAttachments['payload'] = dh; ]]></expression-component> <set-payload value="#[null]" /> I've also done that, but got the error: I received a content-type error: Message :