Forum Discussion

Surekha's avatar
Surekha
Occasional Contributor
13 years ago

REST Webservice Testing - Multipart Attachments

Can someone share how to use multiple attachments in SOAPUI to test REST webservice?


2.5. Multipart Attachments (http://www.soapui.org/SOAP-and-WSDL/add ... ments.html)

For anonymous, MIME, swaRef and MTOM attachments it is possible to associate multiple files with the same attachment part. This will result in soapUI first building a MIME Multipart message containing the associated files and then attaching that multipart-message to the corresponding part definition using the "multipart/mixed" content-type, a feature that can be turned off in the Requests Details tab ("Enable Multiparts"). If you need to set the ContentID for both the multipart attachment and the contained attachments, set the first attachments ContentID to " ", i.e. a space-separated string where the first token is the id of the attachment inside the multipart and the second token is the id of the multipart attachment itself.