質問

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