I need help with XML Parsing. I am ok with JSON parsing but XML poses a real challenge. I have an application called UKG Pro where we need to process the process the output of a report that shows the pending terminations. Terminations do not come through in the connector till days after the termination as it is tied to payroll processing. The HR team built a report to get the term dates from an interim location so we can process these terms effectively on the term date. The challenge is to generate report output it is all XML based which is not the easiest (the rest is all JSON based but for some reason they only support XML for this service).
There are four (4) steps to running a report (login, run report report, pick up output and logoff).
The XML response that I need help with is as follows:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="
">
<s:Header>
<a:Action s:mustUnderstand="1">http://www.ultipro.com/dataservices/bidata/2/IBIDataService/LogOnResponse</a:Action>
</s:Header>
<s:Body>
<LogOnResponse xmlns="http://www.ultipro.com/dataservices/bidata/2">
<LogOnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ServiceId>string value</ServiceId>
<ClientAccessKey>key</ClientAccessKey>
<Token>string value</Token>
<Status>Ok</Status>
<StatusMessage i:nil="true"/>
<InstanceKey>string value</InstanceKey>
</LogOnResult>
</LogOnResponse>
</s:Body>
</s:Envelope>
I need to parse out the three (3) string values (ServiceID, Token and InstanceKey). Any help is appreciated on how to configure this in a response mapping in the web services connector? The examples in the documentation are limited and I am not great at XML
.
Thanks Paul

