سؤال

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.

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top