Search code examples
apache-nifi

How can i convert json to soap xml format by NiFi


I am trying to consume a soap ws by using a json input. I am stuck in converting the json to xml. How can I create flow that convert from json to soap xml format by using NiFi.


Solution

  • There is no processor that directly converts JSON to XML. One option would be to use ExecuteScript with a Groovy script that did the conversion. It looks like there are some examples out there of converting JSON to XML with Groovy:

    Is there a way to convert Json file to XML by using groovy script on soapUI?