Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/03/2024 05:12 AM
Hi Team,
We are facing an error while trying to import accounts using OOTB SOAP connector using XML APIs.
attaching Request and response from POSTMAN.
Connection JSON:
{
"authentications": {
"login": {
"authType": "basic",
"properties": {
"SOAP_ENDPOINT": "**",
"USERNAME": "**",
"PASSWORD": "**",
"company":"**",
"PASSWORD_TYPE": "PasswordText",
"REQUESTPARAMS": {
"CONTENT-TYPE": "text/xml;charset=UTF-8",
"Connection": "Keep-Alive",
"Keep-Alive": "timeout=600, max=1000"
}
}
}
}
}
Account IMPORT JSON:
{
"CONNECTION": "login",
"REQUESTPARAMS": {
"Content-Type": "application/xml"
},
"REQUESTXML": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><request API_version=\"1.0\" client=\"ULSB2\" client_ver=\"1.1\" namespace=\"default\" key=\"i6SlzfCtaiWgXIRt9xu3\"><Read type=\"User\" method=\"all\" limit=\"1000\"><_Return><name/><id/><nickname/><external_id/></_Return></Read></request>",
"RESPONSEDATAPATH": "response.Read.children()",
"ACCOUNTMAPPING": "Name:User.@name,accountID:User.@name"
}
getting below error:
I can see other posts are there where developers faced same issue?
Any idea how to resolve this?
Thank you in advance.
Regards,
Atrayee
09/03/2024 05:16 AM
{
"CONNECTION": "login",
"REQUESTPARAMS": {
"Content-Type": "application/xml"
},
"REQUESTXML": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><request API_version=\"1.0\" client=\"ULSB2\" client_ver=\"1.1\" namespace=\"default\" key=\"i6SlzfCtaiWgXIRt9xu3\"><Read type=\"User\" method=\"all\" limit=\"1000\"><_Return><name/><id/><nickname/><external_id/></_Return></Read></request>",
"RESPONSEDATAPATH": "response.Read.children()",
"ACCOUNTMAPPING": {
"Name": "User.@name",
"accountID": "User.@name"
}
}
09/03/2024 06:02 AM
Hi Rushikesh,
Tried with the above JSON, Still getting the same error.
09/03/2024 06:13 AM
Refer sample - https://docs.saviyntcloud.com/bundle/SOAP-v24x/page/Content/Scenarios-for-Implementing-the-Connector...
09/03/2024 06:34 AM
Hi Rushikesh,
Below is the sample response returned when POST call is invoked using PostMan:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
<Auth status = "0"></Auth >
<Read status = "0">
<User>
<name>User1, Test1</name>
<id>1</id>
<external_id/>
<nickname>User1Test1</nickname>
</User>
<User>
<name>User2, Test2</name>
<id>2</id>
<external_id/>
<nickname>User2Test2</nickname>
</User>
</Read >
</response>
ACCOUNTS_IMPORT_JSON is configured as per the document. Please let us know if you have any insights to this.
Thanks,
Sumit