I currently have an Ensemble production which accepts and handles SOAP requests. I now need to support the exact same data, but instead of coming in as a SOAP request, comes in as a multipart/form-data request. The body of the message would look something like:
I have looked into using Ensemble with an HTTP.InboundAdapter. This seems to have two problems:
1) The use of the HTTP.InboundAdapter forces Ensemble to bind the service to a different port than the current CSP port.
2) The HTTP.InboundAdapter isn't correctly reading the multipart data.
I also looked at using a CSP page. This solves both of the above problems, correctly reading and populating the %request object. However then I am stuck with the need to recreate a lot of the same logic that existed in handling the SOAP request for this alternate format.
I'm thinking I'm going to need to create my own Adapter for Ensemble, but I'd rather not reinvent the wheel if I don't have to. Has anybody already solved this problem, or can point me in the right direction?