title: spring mvc restfull webservice handle post method " 415 Unsupported Media Type"
body: <pre><code>@Controller
  public class Mycontroller {
  @RequestMapping(method = RequestMethod.GET,value="/insertAdminUserInfo")
  public void insertPerformanceInfo(HttpServletRequest request, Model model) throws Exception {
    String userId = (String) request.getParameter("user");
    String region = (String) request.getParameter("status");
    //my business logic
    model.addAttribute("result","success");
  
  }
  @RequestMapping(value="/insertAdminUserInfo",method=RequestMethod.POST)
  public void insertPerformanceInfoPOST(@RequestBody UserInfo userInfo, Model model) throws Exception {
   //my business logic
  model.addAttribute("result","success");
  }
  @RequestMapping(value="/insertAdminUserInfo",method=RequestMethod.PUT)
  public void insertPerformanceInfoPUT(@RequestBody UserInfo userInfo, Model model) throws Exception {
  //my business logic
  model.addAttribute("result","success");
  }
  }
  </code></pre>
  
  <p>This my code , i am trying to send the json data using POST or PUT method, via SOAP UI or REst Client , i am getting below error .</p>
  
  <p>FYI : working fine for GET method.</p>
  
  <pre><code>Response Header:
  Status Code: 415 Unsupported Media Type 
      Connection: Close 
  Content-Language: en-US 
  Content-Type: text/html;charset=utf-8 
  Date: Mon, 03 Feb 2014 12:34:44 GMT 
  Server: WebSphere Application Server/7.0 
  Transfer-Encoding: chunked &lt;/br&gt;
  </code></pre>
  
  <p>Response Body :</p>
  
  <p>Error 415: SRVE0295E: Error reported: 415</p>
  
  <p>Please suggest some idea.</p>
  
  <p>Regards
  Vasanth D</p>