I am dealing with an external API that returns XML data. I am receiving this data in a backend workflow but the data received is blank JSON.
This is an example of the XML that the API sends.
<POS>
<Source>
<RequestorID Type="1" ID="abc" MessagePassword="" />
</Source>
</POS>
and this is the JSON I get in the server logs.
{
"_wf_request_data": {
"_class": "StaticObject",
"data": {
"_wf_OTA_HotelAvailNotifRQ.@Version": "",
"_wf_OTA_HotelAvailNotifRQ.@xmlns": "",
"_wf_OTA_HotelAvailNotifRQ.POS.Source.RequestorID.@Type": "",
"_wf_OTA_HotelAvailNotifRQ.POS.Source.RequestorID.@ID": "",
}
}
}
I suspect the issue is because I am expecting data from the XML attributes. And that data does not seem to be getting converted to JSON properly.
Any ideas on what could be wrong and how to fix this?