
Questions: 23,687 //
Answers: 52,224 //
Contributing Members: 17,955
Hello,
In my flow, how do I access inbound HTTP_RAW_POST_DATA ?
It seems like this should be something quite common but I don't see any information on it.
Jun 13, 2016 at 11:13 AM, rajeshdns answered with:
Hi,
From inbound you can extact the total information which you required... http.request, http.requestpath , version , headers, context path, uri, query string params and total query string..
If your looking for specific information, let me know in detail.. to help you further.
Rgds ..Rajesh
Jun 13, 2016 at 06:28 PM, anirban37 answered with:
If you are talking about the payload you are passing in your POST method , you can simply use the following expression in a logger :- <logger message="#[message.payloadAs(java.lang.String)]" level="INFO"/>
, or alternately you can use <object-to-string-transformer>
after HTTP listener and then use a logger like <logger message="#[message.payload]" level="INFO"/>
The payload after the HTTP listener is in inputstream format so you need to convert it as a String
Already been answered here the same :- http://stackoverflow.com/questions/37692348/mule-3-7-how-do-i-access-inbound-http-raw-post-data/37705975#37705975