Announcement Announcement Module
No announcement yet.
RestTemplate against non-conforming service Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RestTemplate against non-conforming service

    Hello, I need to integrate against a service that consumes and produces JSON, but with the following peculiarities :

    1) it only accepts POST methods, the JSON payload is a post parameter.
    2) application type is always application/text for both requests and responses

    Can I still use the RestTemplate and the MappingJacksonHttpMessageConverter for this ?

    This quote from seems to indicate the the HttpMessageConverters are not executed when postForObject is called ?

    "Objects passed to and returned from the methods getForObject(), postForLocation(), and put() and are converted to HTTP requests and from HTTP responses by HttpMessageConverters."

    Any insight greatly appreciated.