Web service "Put" request payload sent to source from IDN(Update HTTP operation)

Hi all,

I’m trying to debug what data I’m sending to source application when making PUT call. Is there a way to get the payload body that is being sent to source application?

Create a Web Service Before Operation rule, then dump the information

    import sailpoint.connector.webservices.EndPoint;
    import sailpoint.connector.webservices.WebServicesClient;
    import sailpoint.object.Schema;
    import sailpoint.object.Application;
    import sailpoint.object.Attributes;
    import sailpoint.object.ProvisioningPlan;
    import sailpoint.object.ProvisioningPlan.AccountRequest;
    import sailpoint.object.ProvisioningPlan.AccountRequest.Operation;
    import sailpoint.object.ProvisioningPlan.AttributeRequest;

    Map body = requestEndPoint.getBody();
    String jsonBody = (String) body.get("jsonBody");
    log.error("jsonBody: " + jsonBody);
    log.error(logPrefix + "Full URL      = " + requestEndPoint.getFullUrl());
    log.error(logPrefix + "Context URL   = " + requestEndPoint.getContextUrl());
    log.error(logPrefix + "HTTP Method   = " + requestEndPoint.getHttpMethodType());
    log.error(logPrefix + "OperationType = " + requestEndPoint.getOperationType());
    log.error(logPrefix + "App ID        = " + application.getId() );

etc

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.