Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/03/2022 03:26 AM - edited 08/03/2022 11:25 PM
Hi team,
We are integrating a target application with Saviynt using ootb SOAP connector
SOAP request returns below response xml
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Encoding="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<enab:ImportDataResponse xmlns:enab="enablon">
<Response>
<RowCount xsi:type="xsd:int">1</RowCount>
<RowSuc xsi:type="xsd:int">0</RowSuc>
<ErrMsg xsi:type="xsd:string">Record contains some values that would create duplicate primary keys.</ErrMsg>
</Response>
</enab:ImportDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
For Success Scenario, value for RowSuc will be 1. Attached the JSON I tried with but its not hadling failure scenario.
How to define Success criteria for this response? Please help me with correct syntax
Thanks,
Smitha
Solved! Go to Solution.
11/17/2022 10:02 PM
11/17/2022 11:46 PM
Thanks, Vedanth.
I have used the same in my JSON.
"RESPONSEMAPPING":{
"SUCCESSRESPONSE" : "Body.ImportDataResponse.Response.RowSuc"
},
"SUCCESSCRITERIA" : "SUCCESSRESPONSE=1",
"FAILURECRITERIA":"SUCCESSRESPONSE=0"
}