1

I want to send a Zip file to an endpoint in the body of a REST request as a binary stream.

How can I accomplish this using SoapUI?

Simply adding the attachment to the tab does not include it in the body as it does for an HTTP Request

  • Have you tried documentation? – Rao Sep 18 '16 at 1:47
  • The documentation does not detail sending of a file as a RAW stream in the body. Hence the question raised on here. – ECiurleo Sep 19 '16 at 11:30
2

Figured out how this must be done.

When you add an attachment you can set its "Media Type" to match its "Content Type"

enter image description here

Your RAW request will then NOT display any content of the file (instead showing it is not available)

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.