Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ for more details.
This is a quick guide on how to create an MTOM enabled request in SoapUI. The process is actually very simple with only a small catch.

First you need to set the request properties to enable and force MTOM.

Then, on the attachments tab click the + icon and select a file to attach.

You have the option of caching the file inside the request or not, I usually chose to cache it just in case the original file is deleted.

When SoapUI adds the file, it doesn't select the part for you. This needs to match the cid part ID from within the request. That's the minor catch I mentioned earlier.

It's just a matter of clicking the table cell under the 'Part' column and selecting the ID to match the ID inside the SOAP body.

Note: If the above doesn't work, try this...
Change the "cid:" reference in the SOAP body to use the attachment ContentID instead. For example if attachment ContentID is "MyFile.zip" then change the SOAP request to use "cid:MyFile.zip".

That's all there is! The request will then be sent as an MTOM request.


Skip down to comments...
A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. If you spot something out of place, please do let me know.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...