xikandar
8 years agoOccasional Contributor
Document UPloading request not working via SoapUI
Hi,
Help needed on High priority. I am facing problem while uploading document via Post service in SoapUI.
I have also followed these steps as well but every time I get this response: "Message":"Request does not contain document"
- Create a TestCase in the TestSuite
- Add an HTTP TestRequest Step to the TestCase
- Set the endpoint to the URL you want to upload to
- Set the method to POST (or PUT)
- In the Request Editor add the File you want to upload to the Attachments tab
- Set the Media-Type of the POST Body to the same as the Content-Type of the attached File
- Send the request!
Note: We upload document in binary, even setting the Media-type to binary didn't help.
I have to demonstrate SoapUI as best fit for our services and demo is in next week. So looking for some quick help
Thanks,
Sikandar Hayyat
xikandar, I assume you need to change the Media Type of the HTTP Request test step to multipart, now you have "text/plain".
Karel