Skip to main content

Hi Team,

We are currently working on creating a pipeline which will consume Json data from Kafka and transform it into XML then will post the xml data using a particular REST API.

Using Kafka stage we are able to consume the data successfully.
Using Jython evaluator we are able to generate a desired XML from Json (can’t use ‘data generator’ as did not find a way add namespaces in the final XML).

The output of Jython Evaluator is xml string. Now using HTTP client I have to post that XML to a particular API.

 

In the HTTP Client I don’t see the option for xml in Data Format.

 

How can I output data in XML format from Jython evaluator and how can I set the data format to XML.

I have already tried the Content-Type = application/xml in headers but no luck.

 

Regards,
Dixit

Be the first to reply!

Reply