Hi Andy,

Sorry I just got back to this after the holidays.

It works perfectly using .invoke("DELETE", myMsgBody) thank you.

Matthew

On 12/12/2017 05:04, Andy McCright wrote:
Hi Matthew,

If you are using the WebClient APIs directly, you can call the
invoke(String method, Object body) method - under the covers, that's what
the delete() method does - for example:
     response = webClient.invoke("DELETE", myMsgBody);

Likewise in the JAX-RS Client APIs, you would use the 'method' method, like:
     response = client.target(url).request().method("DELETE",
Entity.json(myObject));

Hope this helps,

Andy

On Mon, Dec 11, 2017 at 3:33 PM, Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:

i am using cxf webclient to communicate with a rest server that needs a
delete command to send a body.  it can't seem to do that. is there a
workaround?



Reply via email to