richie
7 years agoCommunity Hero
Solved
Again - Error in SoapUI, but NOT Postman
Hi, I have a request that works in Postman but doesn't in SoapUI, and I'm trying to convert all our Postman tests into SoapUI. The Postman settings are as follows: POST - https://login...
- 7 years ago
Hey!
I got it sorted (finally) thanks to some more reading about the content-type value and help via (https://www.soapui.org/rest-testing/understanding-rest-parameters.html)
Within SoapUI
'Mediatype' = x-www-form-urlencoded (ensuring I didn't select 'Post Querystring' checkbox - it doesn't work if I check this)
Postman provided the request body's name/value pairs separated by a colon on separate lines
e.g.
password:whatever username:rich grant_type:admin
This didn't work in SoapUI so I stuck all the parms in one line in the Request body and separated the parms with an ampersand and replaced the colons with equals signs
e.g.
password=whatever&username=rich&grant_type=admin
This worked!
Thanks!