merxyboy
8 years agoNew Contributor
Cannot upload an image using SoapUI - Petstore UploadImage API
Hi SmartBear community,
I have imported the sample petstore wadl from Swagger and am currently trying the UploadImage API. However, no matter what I do (searched all over the internet for answers), SoapUI always return a 405 Not Allowed error.
I have tried doing it in the test case and making the media type same with the content type of the object.
Kindly help.
Thanks,
Jose
1) Change the petId parameter type to TEMPLATE.
2) Change the file parameter value to file:hqdefault.jpg (not cid:...)
3) Change Media Type to multipart-form/data.
4) Select the Post QueryString check box.
This should do the trick.