Question

I set custom response in WSO2 ESB and i got response like

 {"Response":{"Status Code":"401","Status Message":"Provided Authorization Grant is invalid."}}

But i want to remove Response node from the response.

Was it helpful?

Solution

AFAIK ,It is not possible to remove 'Response' .Reason is same as mentioned in the comment that Because when you set the body as {"Status Code":"401","Status Message":"Provided Authorization Grant is invalid."} and convert to xml there is no root element so it attaches response as root element

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top