SOAP Message Transmission Optimization Mechanism (MTOM) specifies an optimized method for sending binary data as part of a SOAP message using the XML-binary Optimized Packaging (XOP) packages for transmitting binary data. The Apache CXF binding supports the use of MTOM to send and receive binary data. MTOM support is enabled on an endpoint by endpoint basis.
As shown in Example 60, you configure an endpoint to support MTOM by setting its mtomEnabled attribute to true.
Example 60. Configuring an Endpoint to Use MTOM
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
...>
<cxfbc:consumer wsdl="/wsdl/widget.wsdl"
mtomEnabled="true" />
...
</beans>







