title: Apache CXF - http-centric approach and PUT from client to server
body: <p>I use Apache CXF to provide communication with a RESTful API. </p>
  
  <p>I need to use a PUT method to send some constrained entities to database via the API. </p>
  
  <p>Is this the right way to provide this method? </p>
  
  <p>I ask because I am getting a HTTP 500 error code response. </p>
  
  <p>I can only find GET method examples in the official Apache CXF documentation; HTTP PUT, HTTP POST etc. are missing.</p>
  
  <pre><code>WebClient client = 
           WebClient.create("http://MY_SERVER:9090/admission/services/processing");
  Admission a = new Admission();
  a.setCode("73935282");
  :
  :
  
  Response r = client.path("/admission").put(a);
  // Here I would like to get 201, but there is 500 :(
  System.out.println("response: " + r.getStatus()); 
  </code></pre>