I am currently engaged in the development of a web service connector for an application that utilizes a SOAP API with XML responses.
For group aggregation, the data is typically formatted as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<roleList>
<roles>A</roles>
<roles>B</roles>
<roles>C</roles>
<roles>D</roles>
</roleList>
I would like to inquire about the appropriate XPath to retrieve the aforementioned elements individually. While I am utilizing //roleList/roles in the attribute path, during the group aggregation process, the data is being returned as a single line with comma-separated values(A,B,C,D), rather than being retrieved one at a time, and another note if i am defining specific number in the array(//roleList/roles[1]) it is giving that group.
I have already tested this using the online Xpath tool, where I received the results in the expected format.
I would appreciate guidance on how to address this issue, or whether it is necessary to implement a solution by using webservice before or after operation rule.