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

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.
soapuimtom4.png


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




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.
soapuimtom2.png


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.
soapuimtom3.png


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

-i

Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...