Error during Xml to Json policy conversion.,Error in XML to JSON Conversion

Not applicable

i am getting this error when i am converting xml to json policy....plz help me out..

{"fault":{"faultstring":"XMLToJSON[XML-to-JSON-1]: Source response is not available","detail":{"errorcode":"steps.xml2json.SourceUnavailable"}}}

,

0 2 417
2 REPLIES 2

Could you please post the code for the policy as well as the payload you're trying to parse with headers?

Trace the call and ensure a response payload is coming from the target.

Also check the Source used in your policy.

<Source>response</Source>

This needs to be response if the you are processing backend response and not a callout response. The Content-Type header needs to be set to XML as well.