Hello,
I am looking for help to parse the XML response in Webservices connector. I am getting the below sample API xml response. It is a multiple users response, but I have given for one user in the example.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE USER_LIST_OUTPUT SYSTEM "https://testapi.rg3.apps.quad.com/user_list_output.dtd">
<USER_LIST_OUTPUT>
<USER_LIST>
<USER>
<USER_LOGIN>usr3ch</USER_LOGIN>
<USER_ID>76279</USER_ID>
<CONTACT_INFO>
<FIRSTNAME>
<![CDATA[Scan Service Account]]>
</FIRSTNAME>
<LASTNAME>
<![CDATA[CH Legacy User-AD Inactive]]>
</LASTNAME>
<EMAIL>
<![CDATA[[email protected]]]>
</EMAIL>
<ADDRESS1>
<![CDATA[123 Avenue of the Americas]]>
</ADDRESS1>
<CITY>
<![CDATA[New York]]>
</CITY>
<COUNTRY>USA</COUNTRY>
<STATE>New York</STATE>
<ZIP_CODE>
<![CDATA[10105]]>
</ZIP_CODE>
</CONTACT_INFO>
<USER_STATUS>Active</USER_STATUS>
</USER>
</USER_LIST>
</USER_LIST_OUTPUT>
Below are the configuration in WS connector.
Headers
Content-Type: application/xml,text/xml
Response Information
Root Path: .//USER_LIST_OUTPUT/USER_LIST/USER/
Success Code: 2**
Response Mapping
Schema attributes (on the left column)
USER_LOGIN
USER_ID
Attribute Path (On the right column)
@USER_LOGIN
@USER_ID
Error
During Account Aggregation below error occurs
sailpoint.connector.ConnectorException: Error: Error extracting response from XML
.
How should I configure the response to map the attributes like USER_LOGIN, USER_ID, FIRST_NAME in CONTACT_INFO?