Authentication for external application |
In this section we will demonstrate the use of the REST interfaces provided by SoftExpert Suite in two external applications. The goal is to present two ways to configure authentication, input/output parameters, and returns using the REST interfaces provided by SoftExpert Suite and described in this document.
For the first demonstration was used the SoapUI, which is a tool used for testing web service applications. In the image below is an example of how to configure the SoapUI using the RIS_RISK_INTERFACE.
When creating a REST project in SoapUI it is necessary to complete the following fields: ▪Application URL
▪Method = POST ▪Constants = described in the input parameters of the REST interfaces, exemplified in the image as being classname, classpth and cdprod ▪JSON sending data ▪Basic HTTP authentication: oAuthorization = Basic oUsername/Password = Valid users in SoftExpert Suite oPre-emptive auth = Use Authenticate pre-emptively
The second example is using an AJAX request from JQuery in JavaScript, the image below presents an example of using a REST interface provided by SoftExpert Suite.
|