PeterPe
28 days agoNew Contributor
Soapui equivalent for curl -F (multipart/form-data)
I have a working curl command and want this to be integrated into soapui. The main problem is, that the api needs the binary file content in body (-F @curl). How can I achieve this?
curl -X POST -H "Authorization: Basic --snipped-base-64-encoded-string--" -H "accept: */*" -H "Content-Type: multipart/form-data" -F file=@empty_pdf.pdf;type=application/pdf https://myapi.internal/api/scan
I've already tried via attachments (REST Test step Media type set to multipart/form-data and added the attachment (cached), but the api responds some error:
org.springframework.web.multipart.support.MissingServletRequestPartException: Required part 'file' is not present.
Thx in advance.