SailPoint has a lot of predefined REST web services which can be used to call specific functions from a web service client.
If you have requirement to execute a task or report without using the Sailpoint UI or console directly, then you can use the web services option, or it can be any general requirement.
Web services can be used in two different ways in Sailpoint.
Custom Web Service
customwebservice_method.java
If you have requirement to execute a task or report without using the Sailpoint UI or console directly, then you can use the web services option, or it can be any general requirement.
Web services can be used in two different ways in Sailpoint.
- Using IIQclient class
- Creating custom web service
- Import the identityiq.jar file in eclipse. This jar contains the class sailpoint.integration.IIQClient; which contains the default functions provided by sailpoint to call the web services.
- Create a sample class to create a object of iiqclient class to call the functions available publicly
- Download the REST API Integration pdf from compass, which has all the functions listed in details.
Custom Web Service
- Creating custom web service as per the needs is the best option to develop the function as per requirements.
- Create a custom web service method class which will extend BaseResource class.
- BaseResource class will give you the context object of sailpoint to create methods as required.
- Create a class which will extend the SailPointRestApplication.java to include the method create in step3
- Go to web.xml and modify the value of javax.ws.rs.Application to your custom class.
- Now you can call the custom webservice using any client which can all REST web services.
- The return type of REST web-services is JSON, which needs to be converted to process it properly.
customwebservice_method.java
import
sailpoint.rest.BaseResource;
import
sailpoint.tools.GeneralException;
import
javax.ws.rs.GET;
import
javax.ws.rs.Path;
@Path("/executeTask")
public class
CustomWebServiceMethod extends BaseResource{
@GET
public void
getApplication() throws GeneralException
{..
customwebservice.java
public class
CustomWebService extends SailPointRestApplication{
public
Set < Class < ? > > getClasses()
{
System.out.println("hello");
Set < Class < ? > > classes = super.getClasses();
classes.add(CustomWebServiceMethod.class);
Casinos With Casino Games 2021
ReplyDeleteThe Casinos with Casino Games 2021 - 바카라추천 Online 영앤 리치 먹튀 casinos with casino 슬롯머신 games for 텐벳먹튀 real money. Play 토토 사이트 도메인 all the best casino games for real money. Claim your welcome bonus and get