JSON with attachment(multiformdata) to SOAP with MTOM

Hi Folks,

can any one please let me know how to handle the JSON message with attachment(mulitpartform data) and convert it to SOAP message with the MTOM.

Currently for the pass through its working but i doknow how to convert it from JSON to SOAP with attahments.

Thanks

Vinod

0 3 1,205
3 REPLIES 3

Not applicable

Hi Vinod,

As pointed by Christin, you may try that tutorial. But by default, REST-SOAP-REST conversion with attachments works only as SWA ( Soap with attachment). Hope you are aware that MTOM is backward compatible with SWA. So even if your SOAP service is expecting MTOM and you send as SWA it will work without any issues.

If you would like to send the attachment as MTOM then you can leverage some node js examples available online.

Hope it helps

Thanks

Prakash

Hi Prakash,

Thanks for the response.

can we get a sample java script to extract the JSON payload which is coming along with multipart form data and convert it to SOAP message with either SWA or MTOM.

That would be a great help. 🙂