Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

soap connector account_import_json error

asp
Regular Contributor II
Regular Contributor II

Hi all,

I am attempting a soap connector import, to bring in entitlements from a soap service. I keep getting the below error -

 
 
2024-10-25T13:19:32-04:00-ecm-worker-provisoning.SoapProvisioningService-quartzScheduler_Worker-3-lk7gp-DEBUG-Error parsing parameter ACCOUNTS_IMPORT_JSON:
 
2024-10-25T13:19:32-04:00-ecm-worker-provisoning.SoapProvisioningService-quartzScheduler_Worker-3-lk7gp-DEBUG-Error - Error parsing parameter ACCOUNTS_IMPORT_JSON - For input string: "L"
 
2024-10-25T13:19:08-04:00-ecm-provisoning.SoapProvisioningService-http-nio-8080-exec-17-8mw48-ERROR-Error in connecting to webservice: http://xxxxxxxxxxx - Response Code: 415, Response Message: Unsupported Media Type
 
This is my account_import_json
 
[
{
"CONNECTION": "login",
"REQUESTXML": "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:n0=\"urn:sap-com:document:sap:soap:functions:mc-style\"><soap:Header/><soap:Body><n0:GracIdmRoleSearchServices><Action></Action><ApplicationType></ApplicationType><Approver></Approver><AssociatedRole></AssociatedRole><BusinessProcess></BusinessProcess><ConnectorGroup></ConnectorGroup><CriticalLevel></CriticalLevel><FunctionalArea></FunctionalArea><Landscape></Landscape><Language></Language><LastReaffirmDt></LastReaffirmDt><OrgLvl></OrgLvl><OrgVal></OrgVal><Permission></Permission><Profile></Profile><ReaffirmPeriod></ReaffirmPeriod><RoleDesc></RoleDesc><RoleName></RoleName><RoleOwner></RoleOwner><RoleSensitivity></RoleSensitivity><RoleStatus></RoleStatus><RoleType></RoleType><SubProcess></SubProcess><System></System></n0:GracIdmRoleSearchServices></soap:Body></soap:Envelope>",
"REQUESTPARAMS": {
"Content-Type": "text/xml;charset=utf-8",
"SOAPAction": "urn:sap-com:document:sap:soap:functions:mc-style:GRAC_SEARCH_ROLES_WS:GracIdmRoleSearchServicesRequest"
},
"REQUESTTYPE": "ENTITLEMENTS",
"RESPONSEDATAPATH": "Body.GracRoleSearchServicesResponse.RolesList.children()",
"ENTITLEMENTMAPPING": {
"ROLE": {
"ENTITLEMENT_VALUE": "RoleName",
"DISPLAYNAME": "RoleName",
"DESCRIPTION": "RoleDesc"
}
}
}
]
 
I have looked at this post here - https://forums.saviynt.com/t5/identity-governance/getting-415-unsupported-media-type-error-for-grc-s... and tried the solution from this post. But continue to see that same error.  From what I can tell from other posts and online searches, this indicates an issue with the content-type. But I think I have the correct values for it.  I am not sure, what this error is indicating either -
 
2024-10-25T13:19:32-04:00-ecm-worker-provisoning.SoapProvisioningService-quartzScheduler_Worker-3-lk7gp-DEBUG-Error - Error parsing parameter ACCOUNTS_IMPORT_JSON - For input string: "L"
 
Thanks!
2 REPLIES 2

asp
Regular Contributor II
Regular Contributor II

Further digging into this - I am also seeing the below exception:

2024-10-25T16:26:06-04:00-ecm-worker--null-b9977--java.lang.NumberFormatException: For input string: "L" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at com.saviynt.provisoning.SoapProvisioningService$_initializeConnectionForImport_closure3.doCall(SoapProvisioningService.groovy:420) at com.saviynt.provisoning.SoapProvisioningService.initializeConnectionForImport(SoapProvisioningService.groovy:358) at com.saviynt.provisoning.SoapProvisioningService.doImport(SoapProvisioningService.groovy:123) at com.saviynt.ecm.integration.ExternalConnectionCallService.invokeExternalMethod(ExternalConnectionCallService.groovy:269) at ApplicationDataImportJob.execute(ApplicationDataImportJob.groovy:211) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

 

And we have verified that the query works from Postman.  The only values that I have set so far on my connector are the 'connectionJSON' and the 'Account_Import_JSON'. Could it be missing any other settings?

rushikeshvartak
All-Star
All-Star

Try below

[
    {
        "CONNECTION": "login",
        "REQUESTXML": "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:n0=\"urn:sap-com:document:sap:soap:functions:mc-style\"><soap:Header/><soap:Body><n0:GracIdmRoleSearchServices><Action></Action><ApplicationType></ApplicationType><Approver></Approver><AssociatedRole></AssociatedRole><BusinessProcess></BusinessProcess><ConnectorGroup></ConnectorGroup><CriticalLevel></CriticalLevel><FunctionalArea></FunctionalArea><Landscape></Landscape><Language></Language><LastReaffirmDt></LastReaffirmDt><OrgLvl></OrgLvl><OrgVal></OrgVal><Permission></Permission><Profile></Profile><ReaffirmPeriod></ReaffirmPeriod><RoleDesc></RoleDesc><RoleName></RoleName><RoleOwner></RoleOwner><RoleSensitivity></RoleSensitivity><RoleStatus></RoleStatus><RoleType></RoleType><SubProcess></SubProcess><System></System></n0:GracIdmRoleSearchServices></soap:Body></soap:Envelope>",
        "REQUESTPARAMS": {
            "Content-Type": "application/soap+xml;charset=utf-8",
            "SOAPAction": "\"urn:sap-com:document:sap:soap:functions:mc-style:GRAC_SEARCH_ROLES_WS:GracIdmRoleSearchServicesRequest\""
        },
        "REQUESTTYPE": "ENTITLEMENTS",
        "RESPONSEDATAPATH": "Body.GracRoleSearchServicesResponse.RolesList",
        "ENTITLEMENTMAPPING": {
            "ROLE": {
                "ENTITLEMENT_VALUE": "RoleName",
                "DISPLAYNAME": "RoleName",
                "DESCRIPTION": "RoleDesc"
            }
        }
    }
]

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.