My Oracle Support Banner

How to implement MTOM in SOA Suite 11g (Doc ID 1284266.1)

Last updated on MAY 15, 2023

Applies to:

Oracle SOA Suite - Version and later
Oracle Fusion Financials Common Module - Version to [Release 1.0]
Information in this document applies to any platform.


In the documentation for SOA Suite, the following information can be found regarding MTOM:

Oracle Fusion Middleware Developer's Guide for Oracle SOA Suite 11g Release 1 (11.1.1) >
Using MIME/DIME SOAP Attachments
A BPEL process service component can receive SOAP attachments in an optimized Message Transmission Optimization Mechanism (MTOM) format. However, the BPEL process cannot internally process the attachments. Instead, the attachments are added to the DOM as part of the XML file. Oracle recommends that you avoid using MTOM attachments and instead use Multipurpose Internet Mail Extensions (MIME) and Direct Internet Message Encapsulation (DIME) SOAP attachments.
Oracle Fusion Middleware Programming Advanced Features of JAX-WS Web Services for Oracle WebLogic Server >
Optimizing Binary Data Transmission Using MTOM/XOP
MTOM/XOP support is standard in JAX-WS via the use of JWS annotations. The MTOM specification does not require that, when MTOM is enabled, the Web Service runtime use XOP binary optimization when transmitting base64binary or hexBinary data. Rather, the specification allows the runtime to choose to do so. This is because in certain cases the runtime may decide that it is more efficient to send the binary data directly in the SOAP Message; an example of such a case is when transporting small amounts of data in which the overhead of conversion and transport consumes more resources than just inlining the data as is.
Oracle Fusion Middleware Developer's Guide for Oracle SOA Suite 11g Release 1 (11.1.1) >
Managing Large Documents and Large Numbers of Instances
WS binding materializes the attachment sent as MTOM and puts it inside in Base64-encoded format (streaming is not supported).
Oracle Fusion Middleware Concepts Guide for Oracle Infrastructure Web Services >
Using MTOM Encoded Message Attachments
As described in Chapter 2, "Attaching Policies to Oracle Infrastructure Web Services,", Oracle WSM provides a set of predefined policies and assertion templates that are automatically available when you install Oracle Fusion Middleware.

After reading these documentation about MTOM, the following questions remain:

  1. What is the recommendation and Best Practices to use MTOM with SOA Suite?
  2. Why is MTOM attachment streaming not supported by Oracle SOA and what does it mean?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.