I have a question on apply JSON Transformation regarding conversion of Soap to JSON element.
I have done Apply JSON transformation, but I am seeing full SOAP envelope getting converted to JSON
If I want to do only body element is there any way to do it
help is much appreciated.
thanks and regards,
For your purpose you have extract the paylod first.
e.g use XPath with /soapenv:Envelope/soapenv:Body/child::* and you get your soap operation and this operation you can transform to JSON.
DTZ's methodology is correct, you will need to extract the fragment of XML that you wish to translate to JSON from the original XML payload and then convert that fragment, rather than the entire message. The policy logic that would allow you to do this would look something like this:
Let us know if that solves your problem, or if you're looking for something more/different.