Mule Http Listner getting url parameter values -
<flow..> <http:listener-config name="http_listener_configuration" host="${http.hostname}" port="${http.port}" basepath="${http.base.path}" doc:name="http listener configuration"/> <http:listener config-ref="http_listener_configuration" path="store/*" doc:name="http"/> old http end point <!-- <http:inbound-endpoint address="http://${http.hostname}:${http.port}/${http.base.path}/store" doc:name="http" exchange-pattern="request-response"> <object-to-string-transformer /> </http:inbound-endpoint> --> <apikit:router config-ref="store-api-config" doc:name="apikit router" /> </flow> <flow name="get:/rates/search:smartstore-api-config"> <logger message=" #[message.inboundproperties['referencedate']]" level="info" doc:name="log request"/> </flow>
when try invoke url, getting null value in logger. if enable old http end point point working fine.
http://localhost:8899/apis/myapp/myrates/search?referencedate=2015-01-01
i have tried link, didnot work.
1) #[message.inboundproperties.'http.query.params'.referencedate] 2) #[message.inboundproperties.'http.query.params'.get('referencedate')] 3) #[message.inboundproperties.get('http.query.params').get('referencedate')]
Comments
Post a Comment