MTOM/XOP : Message Transmission Optimization Mechanism/XML-binary Optimized Packaging (MTOM/XOP)
If you have a requirement where the web service has to send and receive large number of documents (images, word documents, pdf etc) to an enterprise system over internet, then using MTOM will save you the bandwidth. You gain efficient network transmission by using MTOM.
Enabling MTOM in SOAP UI
1. Set Enable MTOM to true in Request Properties
2. Attach a file and link the file in the SOAP payload by using the cid: notation
3. Invoke the payload and confirm upload.
Get attachment from SOAP UI response
1.Observe the attachment within the Response payload via XOP
include reference
2. Retrieve the attachment by clicking the highlighted
button.
References:
https://blogs.oracle.com/vijaya/web-service-mtom
http://www.mkyong.com/webservices/jax-ws/jax-ws-attachment-with-mtom/
https://www.ibm.com/developerworks/library/ws-devaxis2part3/