Announcement Announcement Module
Collapse
No announcement yet.
Default HttpMessageConverter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Default HttpMessageConverter

    I am currently working on upgrading my application to use SI 2 (using 2M7) from 1.0.4. Application has been enabled to HTTP using HttpRequestHandlingMessagingGateway. I am testing it with HttpClient by setting parameters on PostMethod (they all contain string values). What I am puzzled by is, what is the default HttpMessageConverter being used? Content submitted is being processed as a byte array and converted to LinkedMultiValueMap - at least it seems like it. If I don't provide any converters, the request body is being processed and works just fine. But, if I provide ByteArrayHttpMessageConverter, the message headers are being returned as LinkedMultiValueMap and does not contain the parameters posted.

    Could somebody possibly have an answer for this?

    Thank you in advance.

  • #2
    This one I figured it out, it is because I did not set content type for my http post. Once I set that value, things made sense.

    Comment

    Working...
    X