title: How to send DELETE request with body in Apache CXF JAX-RS with webclient?
body: <p>I want to call <code>webclient.delete(deleteBody)</code> similar to POST.</p>
  
  <pre><code>WebClient client = WebClient.create(getUrl());
  client = client.type("application/json").accept("application/json");
  HTTPConduit conduit = WebClient.getConfig(client).getHttpConduit();
  conduit.getClient().setReceiveTimeout(getApiTimeout());
  Response resp = client.post(postData);
  </code></pre>
  
  <p>but there is no method which takes deleteBody.</p>
  
  <p>I even use <code>webclient.invoke("DELETE", deletBody)</code> but this throws 500 HTTP error.</p>
  
  <p>Here is my delete body: </p>
  
  <pre><code>{"password":"1ad1ad","username":11111111}
  </code></pre>
  
  <p>But I tried with <code>curl</code> command for DELETE its working:</p>
  
  <pre><code>curl -q -H "Accept: application/json" -H "Content-type: application/json" -X DELETE -d @del.json http://d.eze.cc/api/pd/xxxxx/DEL001234/
  </code></pre>