Results 1 to 2 of 2

Thread: Default HttpMessageConverter

  1. #1
    Join Date
    Sep 2006
    Posts
    100

    Default 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. #2
    Join Date
    Sep 2006
    Posts
    100

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •