Unable to POST multipart/form-data with soapui 5.5.0 (free version)
Hi,
I am trying to create SOAPUI test suite by using request which consist attachment in it and using "multipart/form-data"
Request are following
Accept: application/json, text/plain, */*
X-REST-API: true
X-Requested-With: true
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Content-Type: multipart/form-data
Accept-Encoding: gzip, deflate
and Request Payload is:
------WebKitFormBoundarylyO2eMQqZPhXMB3d
Content-Disposition: form-data; name="attachment"; filename="check1.txt"
Content-Type: text/plain
------WebKitFormBoundarylyO2eMQqZPhXMB3d
Content-Disposition: form-data; name="fileName" check1.txt
------WebKitFormBoundarylyO2eMQqZPhXMB3d
Content-Disposition: form-data; name="employeeid" -1
------WebKitFormBoundarylyO2eMQqZPhXMB3d
Content-Disposition: form-data; name="componentid" 213
------WebKitFormBoundarylyO2eMQqZPhXMB3d
Content-Disposition: form-data; name="entityid" 1
------WebKitFormBoundarylyO2eMQqZPhXMB3d
Content-Disposition: form-data; name="categoryId" 151
------WebKitFormBoundarylyO2eMQqZPhXMB3d--
Tried multiple solutions on smartbear community but unable to get success from any of them:
POSTMAN request are appearing (refer attached postman image)
SOPAUI image which i have created (refer attached soapui images)
Please suggest, as i am getting failure while running this soapui request however postman is successfully able to execute the REST request