REST-SOAP with MTOM Support

Use Case

A Company wants to be able to proxy a SOAP service that uses MTOM to optimize binary data transfer through multipart attachments.

Solution

This repository contains a sample REST-SOAP-REST proxy. The original proxy was generated using this WSDL. The proxy acts as a mirror/echo service, meaning the generated SOAP request will be returned to the client. The optimization from REST to SOAP+MTOM is implemented in a Java Callout Policy.

This example is also useful to understand how to support MIME multipart messages (read and write).

Note: Be careful about payload sizes! Keep attachment sizes as small and consistent as possible!

Please, let me know your thoughts.

Version history
Last update:
‎09-11-2018 06:40 PM
Updated by: