diff --git a/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java b/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java index 44ad89506c1d..65ea892b2a37 100644 --- a/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java +++ b/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java @@ -81,10 +81,8 @@ public Response sqsSendToSpecificQueue(@PathParam("queueName") String queueName, @DELETE @Produces(MediaType.TEXT_PLAIN) public Response purgeQueue(@PathParam("queueName") String queueName) throws Exception { - producerTemplate.sendBodyAndHeader(componentUri(queueName) + "?operation=purgeQueue", - null, - Sqs2Constants.SQS_QUEUE_PREFIX, - queueName); + producerTemplate.sendBody(componentUri(queueName) + "?operation=purgeQueue", + null); return Response.ok().build(); } @@ -148,10 +146,8 @@ public Response deleteMessage(@PathParam("queueName") String queueName, @PathPar @DELETE @Produces(MediaType.TEXT_PLAIN) public Response deleteQueue(@PathParam("queueName") String queueName) throws Exception { - producerTemplate.sendBodyAndHeader(componentUri(queueName) + "?operation=deleteQueue", - null, - Sqs2Constants.SQS_QUEUE_PREFIX, - queueName); + producerTemplate.sendBody(componentUri(queueName) + "?operation=deleteQueue", + null); return Response.ok().build(); }