How to convert JSON input to XML and pass the same to backend for getting the result.
Typically this is the sequence in which you use the transformation and invoke the backend if using JSON as input.
-> Transform JSON request to XML using Apply JSON Transformation assertion
-> Transform the xml to target/backend compatible xml using Apply XSL Transformation
-> Route to HTTP(S)
-> Transform the response xml from back end to the xml structure expected by the caller using Apply XSL Transformation
-> Trim the transformed xml to knock-off the root tag
-> Transform XML response to JSON using Apply JSON Transformation
The above flow gives utmost flexibility while transforming from JSON to XML and back. Hope its clear.
You may want to use
Do i need to use above transformation before route to backend?
Simple transforming like above will we get the proper response from backend system?
Where do i need to use RootTag?
Sorry for the delay,
I was in vacation. It really helps alot.
Thank you so much
Retrieving data ...