Howto extract data from the JSON body of REST request inside a WSO2 ESB Synapse handler
问题 I'm writing a custom Handler for WSO2 ESB to construct authentication credentials based on input request content. Right now what I have is something like this: public boolean handleRequest(MessageContext context) { // TODO: extract relevant information (clientId) from JSON request body String clientId; Map<String, String> headers = (Map<String, String>) ((Axis2MessageContext) context).getAxis2MessageContext().getProperty( org.apache.axis2.context.MessageContext.TRANSPORT_HEADERS);