Testing Oauth2 authorization with SoapUI

From i2Rest
Revision as of 13:32, 25 June 2020 by Pavel.lobko (talk | contribs)
Jump to: navigation, search

We assume that you already have Soap UI installed. If not, open source installation package could be found on https://www.soapui.org/downloads/soapui/.
Run SOAP UI, if you alredy have a project, you would like to update with authorization profile - go to it. Otherwise go to File ---> New REST Project. As an example we will create Managment Api call poject. Specify URI to request as follows:

<Managment Gate URL>

where <Managment Gate URL> is the value in your configuration *.json.

Auth soapui 1.png

Change reques method for POST, then choose or type "application/json" in Media type and provide request body:

{
     "input":{"echo":"0"},
     "joblog":true,
     "tracein":true, 
     "traceout":true
}

Then submit request.

Echo-soapui-3.png

Find server responce under the JSON tab:

Echo-soapui-4.png