Skip to Content
0
Jul 03, 2020 at 12:43 PM

JSON message input to Odata receiver

1144 Views

Hi,

Input XML is -

<?xml version="1.0" encoding="UTF-8"?> <Info><A>Constant</A><B>Constant</B></Info>

I have to convert it into JSON and pass it to Odata receiver, odata receiver is working only for JSON messages.

If I use XML to JSON converter then , Odata receiver channel is giving error that OData Receiver cannot process the message type passed by element XML To JSON Converter.

Can you please let me know groovy script for it so that we can pass json message to Odata receiver.

Regards