Sufyan Khan
2017-11-03 11:10:02 UTC
I have developed custom adapter in which I am consuming SOAP WS (using HTTP Client Connector). In response I am getting XML (as below) in http.bodyAsString attribute.
How to parse below xml so that in every iteration I can map data of each Entry tag of XML in work and return work back to ISIM.
[It can be done if this XML is stored in file so using file connector in for each loop and simple xml parser, but I don't want to implement this approach as it is not a good way]
<?xml version="1.0" encoding="UTF-8"?>
<DocRoot>
<Entry>
<Telephone>111-1111</Telephone>
<Birthdate>1958-12-24</Birthdate>
<Title>Full-Time TDI Specialist</Title>
<uid>jdoe</uid>
<FullName>John Doe</FullName>
</Entry>
<Entry>
<Telephone>2222222</Telephone>
<Birthdate>12/23/4567</Birthdate>
<Title>Test</Title>
<uid>skhan</uid>
<FullName>Sufyan Khan</FullName>
</Entry>
</DocRoot>
How to parse below xml so that in every iteration I can map data of each Entry tag of XML in work and return work back to ISIM.
[It can be done if this XML is stored in file so using file connector in for each loop and simple xml parser, but I don't want to implement this approach as it is not a good way]
<?xml version="1.0" encoding="UTF-8"?>
<DocRoot>
<Entry>
<Telephone>111-1111</Telephone>
<Birthdate>1958-12-24</Birthdate>
<Title>Full-Time TDI Specialist</Title>
<uid>jdoe</uid>
<FullName>John Doe</FullName>
</Entry>
<Entry>
<Telephone>2222222</Telephone>
<Birthdate>12/23/4567</Birthdate>
<Title>Test</Title>
<uid>skhan</uid>
<FullName>Sufyan Khan</FullName>
</Entry>
</DocRoot>