title: post service is not calling throwing 400 (Bad Request)
body: <p>Hi friends I am using <code>Angularjs</code> and <code>rest-servies</code>  but when I am calling rest services from <code>service.js</code> file something is goning wrong and it is throwing  <code>400(bad request )</code></p>
  
  <h2>main.js</h2>
  
  <pre><code>garantiesService.getTarifs($scope.recap.ageDirigeant,$scope.selectedCompany.zipcode)
   .success(function(){
      console.log('in  success');
    })
  </code></pre>
  
  <h2>service.js</h2>
  
  <pre><code>healthApp.factory('garantiesService', ['$http', function($http) {
  var service = {
    getTarifs: function(age,zipcode)
      {
          console.log("age : "+age);
          console.log("zipcode : "+zipcode);
          var directorHealthInsuranceInfo = {};
  
          directorHealthInsuranceInfo.age=age;
          directorHealthInsuranceInfo.department=zipcode;
  
          return $http.post('rest-service/quotes/health /director',directorHealthInsuranceInfo);
  
      }
  };
  return service;
  </code></pre>
  
  <h2>HealthInsuranceController.java</h2>
  
  <pre><code> @Controller
   public class HealthInsuranceQuoteResource {
  
   @RequestMapping("quotes/health/director")
   @ResponseBody
   public String quoteDirector(@RequestBody DirectorHealthInsuranceInfo info) {
     System.out.println("------HealthInsuranceQuoteResult------");
    return "hi";
  </code></pre>
  
  <p>}</p>
  
  <h2>DirectorHealthInsuranceInfo.java</h2>
  
  <pre><code> @Value
  public class DirectorHealthInsuranceInfo {
  private String department;
  private int age;
  </code></pre>
  
  <p>}</p>
  
  <p>when I am sending the request it is throwing Bad Request 400 error.</p>