Announcement Announcement Module
No announcement yet.
406 Not Acceptable----415 Unsupported Media Type Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 406 Not Acceptable----415 Unsupported Media Type

    when i run the spring-android-showcase i can't get the json result, but i can get the xml result through restTemplate. anybody can help me?

    my showcase version is

    there are the Excepions when i Fetch Json list of states:
    HttpGetJsonActivity(459): 406 Not Acceptable
    because i can get the xml result, so I think the config will not be wrong.
    who can resolve it, thank you...

  • #2
    i am facing the same problem.........can u tell me the solution


    • #3
      Apparently the ContentType / AcceptableMediaType in your request headers doesn't match the consumes/produces definition of your service.

      Can you post both the definition of the service, and the invocation of the rest template?