Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/27/2024 12:17 AM
Hi
I have a SOAP API with basic authentication.
this has a pagination based on value( lastBaseID) coming in response in header
Since it has no authentication URL or WSDL URL, and I cannot the same API URL in connection JSON because it is giving 500 error.
Can someone please provide sample JSON to implement this particular API, and how bypass connection JSON?
Also how to implement pagination based on header response?
if it is not possible, can we encapsulate SOAP can inside rest?
Regards
Thanks in Advance
05/27/2024 06:54 AM
Connection JSON issue is fixed with below JSON:
{
"authentications": {
"accImport": {
"authType": "basic",
"properties": {
"SOAP_ENDPOINT": "https://XXXXXXXXX.com/mdni/erpintegration/api/fetchUsers?tenantId=XXXXXXXXXXX&baseId=B%21oIAECCAylFM...",
"TEST_URL" : "https://XXXXXXXX.com/mdni/erpintegration/api?WSDL",
"USERNAME": "XXXXXXXX",
"PASSWORD": "XXXXXXXX",
"REQUESTPARAMS": {
"CONTENT-TYPE": "text/xml;charset=UTF-8",
"Connection": "Keep-Alive",
"Keep-Alive": "timeout=600, max=1000"
}
}
}
}
}
also account Import JSON is also:
{
"CONNECTION1" : "accImport" ,
"REQUESTTYPE1": "ACCOUNTS",
"REQUESTXML1":"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:gro=\"http://userIntegrationService.com\">\n<soapenv:Header/>\n <soapenv:Body>\n<gro:fetchUsers/>\n</soapenv:Body>\n</soapenv:Envelope>",
"soapaction1":"",
"RESPONSEDATAPATH1":"Body.UsersResponse.User", "ACCOUNTMAPPING1":"NAME:Name,ACCOUNTID:User.UniqueName,customproperty1:EmailAddress,customproperty2:LocaleID,customproperty3:TimezoneID,customproperty4:Organization,customproperty5:DefaultCurrency,customproperty6:Supervisor.UniqueName",
"ENTITLEMENTMAPPING1":{"Roles":"Groups.Group.GroupUniqueName"}
}
However, I still looking for way to grab the value of lastBaseId from response header and use it for pagination.
regards
05/27/2024 07:17 AM
05/27/2024 07:34 AM
But this link is for Rest type connector, Is this also applicable to SOAP connector.
Regards
05/27/2024 07:39 AM
Please refer the below document and forum post which you might refer to create the pagination for the soap connector,
https://docs.saviyntcloud.com/bundle/SOAP-v24x/page/Content/Scenarios-for-Implementing-the-Connector...
https://forums.saviynt.com/t5/general-discussions/soap-connector-is-it-possible-to-import-entitlemen...
https://forums.saviynt.com/t5/identity-governance/soap-workday-connector-pagination/m-p/72683
05/27/2024 08:05 AM
Hi
All of these links are describing pagination when the details are present inside the response body and part of next payload (in request XML). but in this case, its next page details are coming in response header and has to be part of next URL.
[{"key":"lastBaseId","value":"B%21oIAECCAylFMRU","description":"Custom header","enabled":true,"disableEdit":true,"info":"Custom header"}]
This lastBaseId has to part of next URL.
Is there a ways to create next URL in SOAP?
Regards