Published on WSO2 Oxygen Tank (http://wso2.org)

Configurations Options for Handling Binary Attachments in Apache Axis2

By thilina
Created 2006-09-22 08:39

Apache Axis2 supports binary attachment handling using both SOAP Message Transmission Optimization Mechanism (MTOM) as well as SOAP with Attachments (SwA). Users do not need to worry about any configuration in order to receive MTOM/SwA messages. Apache Axis2 Engine automatically identifies the type of the incoming message (plain SOAP/MTOM/SwA) based on the message's content type HTTP header. However, user needs to configure the enableMTOM/SwA in order to be able to send MTOM/SwA messages. This KB discusses the various attachment configuration options available with Apache Axis2.

Attachment Configurations Available With Axis2

Axis2 user is not expected to enable MTOM & SwA together. In such a situation MTOM will get priority over SwA.

Common Attachment Configurations - File Caching

Axis2 file caching mechanism allows the user to receive very large attachments irrespective of being an Axis2 server or a client. Trying to receive large attachments without enabling file caching can result in OutOfMemory situations. Axis2 has been tested with attachments with the sizes larger than 1GB. Receiving Attachment sizes will only be limited by the free space available at the given attachment temp directory.

Applies to

Apache Axis2/Java post 1.0 versions

More Information

MTOM Guide -Sending Binary Data with SOAP [1]

Binary with ADB [2]


Source URL:
http://wso2.org/library/264