Hi,
I have a scenario, in which I need to accept JSON format request and convert into XML before sending to backend server. I was looking into XSLTransform Policy. I plan to do a JSONToXML Convert policy to convert request object in XML and then use XSLTransform Policy. Am I on the right track ?
Solved! Go to Solution.
YES.
That's a fine way to do it.
Alternatively, you can look at a JS policy to transform JS to "a differently shaped JS", and then use JSONToXML, to get the result you want. This may help you avoid the XSLT, if you prefer to do it that way.
Either way works. Some people like using XSL, some don't . You have options.
YES.
That's a fine way to do it.
Alternatively, you can look at a JS policy to transform JS to "a differently shaped JS", and then use JSONToXML, to get the result you want. This may help you avoid the XSLT, if you prefer to do it that way.
Either way works. Some people like using XSL, some don't . You have options.