When I use the 'Body to Parameter Map' transformer, I can get the parameter in URL, but I cannot get the content. When I use the 'JSON to Object' transformer, I can only get the content, but the parameter is lost in the payload. How can I get both of them? The configuration as follows:
<flow name="zhicall-httpFlow" doc:name="zhicall-httpFlow">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="test" encoding="UTF-8" doc:name="InHTTP" mimeType="application/json"/>
<http:body-to-parameter-map-transformer doc:name="Body to Parameter Map"/>
<json:json-to-object-transformer returnClass="java.util.Map" mimeType="application/json" doc:name="JSON to Object"/>
<!-- <http:body-to-parameter-map-transformer ignoreBadInput="true" doc:name="Body to Parameter Map" encoding="UTF-8" mimeType="application/json"/> -->
<!-- <set-property doc:name="Content-Type Property" propertyName="Content-Type" value="application/json"/> -->
<custom-transformer encoding="UTF-8" class="com.zhicall.esb.transformer.MyTransformer" doc:name="Java" mimeType="application/json"/>
</flow>