Below are the configuration in WS connector.
Headers
Accept: * / , Content-Type: application/json
Response Information
Root Path: .//MasterDataResponse/MasterDataResult/UserRoles/UserRole
Success Code: 2*
Response Mapping
Schema attributes (on the left column)
GRPNAME
Attribute Path (On the right column) @GRPNAME
Hi @srpodeti - Your Web Service is wrapping the xml you are interested in as a string CDATA blob; my understanding is that that can’t be directly parsed via XPath. If you can’t get the WS to send raw XML, then you are into a more complex solution including perhaps an After Operation Rule to extract the XML body.
I wrote the after operation rule and i am getting below error.
Exception during aggregation of Object Type Role on Application Example POC [source]. Reason: java.lang.RuntimeException: An error occurred while aggregating Application Example POC [source] sailpoint.connector.ConnectorException: Error: The application script threw an exception: org.xml.sax.SAXParseException; lineNumber: 75; columnNumber: 17; The element type “p” must be terminated by the matching end-tag "
". BSF info: Example After Operation Rule at line: 0 column: columnNo comu.txt (1.9 KB)
Could you please help me where this error is coming?
Hi @srpodeti - I’m afraid I don’t have the bandwidth to debug your rule, but please check that you are extracting the CDATA first and then doing the XPath on the result, which looks like it has a root of /schema1/complexType/UserRoles