How to receive simultaneously converted and raw request body on spring mvc
<p>I have implemented Jaxb2RootElementHttpMessageConverter for converting XML request to my java object and it works. My controller looks like</p>

<pre><code>@RequestMapping(value = "/post", method = RequestMethod.POST)
public MyResponse post(@RequestBody MyRequest request, BindingResult result)
</code></pre>

<p>I want to recieve simultaneously raw xml request for storing logs and converted java object for validation and another processes like</p>

<pre><code>@RequestMapping(value = "/post", method = RequestMethod.POST)
public MyResponse post(@RequestBody String originalRequest, @RequestBody @Valid MyRequest request, BindingResult result)
</code></pre>

<p>I have tried to get response body as HttpServletRequest's InputStream, but I got <code>IOException: Stream closed</code></p>

<p>How to do it if I want so Spring make transformation and validation instead of my code?</p>