Jan 19th, 2012, 02:40 PM
Help configuring HTTP multi-part outbound adapter?
I've inherited a Spring integration project that defines an HTTP outbound-channel-adapter. I'm POSTing through the adapter and want to change the content type to multi-part form but can't find an example of how to do it. There are several examples covering HTTP *inbound* adapter multi-part handling but not outbound; maybe I missed it. I'd post my outbound adapter definition but it looks fairly standard.
Can someone please provide an example?
Jan 19th, 2012, 03:39 PM
As I've just investigated source code of HttpRequestExecutingMessageHandler, it will be enough to send to <outbound-channel-adapter/> a message with payload of type Map<String, Object>.
All other work will be done with class described above.
Try that, please.
Jan 20th, 2012, 09:19 AM
Thanks for the response; I'll do what you suggest.