Cannot make successful call using Jmeter to a rest service (Method: DELETE)
<p>I have written a <code>REST</code> web-service. It accepts <code>RequestMethod.DELETE</code>, consumes  <code>"application/json"</code>. I have tested this in my local using <code>DHC</code> client of chrome. It was successful. But when I test it using Jmeter then the response is saying: "The request sent by the client was syntactically incorrect". My point is then how it is working with dhc client &amp; why not in Jmeter ?</p>

<p><a href="https://i.stack.imgur.com/9BhFL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9BhFL.jpg" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/Qvhi0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qvhi0.jpg" alt="enter image description here"></a></p>

<p><strong>Java Portion:</strong></p>

<pre><code>@RequestMapping(value = { "/{apiVersion}/provision"}, 
        method = RequestMethod.DELETE, consumes = "application/json")
public @ResponseBody
EspCancelResponse cancel(@RequestBody EspCancelRequest cancelRequest) throws ProvisionException{
//do something
}
</code></pre>

<p><strong><a href="https://i.stack.imgur.com/pOe9N.jpg" rel="nofollow noreferrer">ESPCancelRequest:</a></strong></p>

<pre><code>@JsonPropertyOrder({"espCentralTransactionId"})
public class EspCancelRequest {

private String espCentralTransactionId;

public String getEspCentralTransactionId() {
    return espCentralTransactionId;
}

@JsonProperty("espCentralTransactionId")
public void setEspCentralTransactionId(String espCentralTransactionId) {
    this.espCentralTransactionId = espCentralTransactionId;
   }
}
</code></pre>