diff --git a/docs/modules/ROOT/examples/client-server/application.properties b/docs/modules/ROOT/examples/client-server/application.properties index 364f29dff..da24ee728 100644 --- a/docs/modules/ROOT/examples/client-server/application.properties +++ b/docs/modules/ROOT/examples/client-server/application.properties @@ -129,6 +129,12 @@ quarkus.cxf.client.soap12.soap-binding = http://www.w3.org/2003/05/soap/bindings quarkus.cxf.client.soap12.logging.enabled = true #quarkus.cxf.client.soap12.http-conduit-factory = URLConnectionHTTPConduitFactory +quarkus.cxf.client.contentType.client-endpoint-url = http://localhost:${quarkus.http.test-port}/soap/soap12 +quarkus.cxf.client.contentType.service-interface = io.quarkiverse.cxf.it.HelloService +#quarkus.cxf.client.contentType.soap-binding = http://www.w3.org/2003/05/soap/bindings/HTTP/ +quarkus.cxf.client.contentType.content-type = application/soap+xml; action="contentTypeAction" +quarkus.cxf.client.contentType.logging.enabled = true + quarkus.cxf.endpoint."/soap12".implementor = io.quarkiverse.cxf.it.soap12.Soap12HelloServiceImpl quarkus.cxf.endpoint."/soap12".soap-binding = http://www.w3.org/2003/05/soap/bindings/HTTP/ quarkus.cxf.endpoint."/soap12".logging.enabled = true diff --git a/integration-tests/client-server/src/main/java/io/quarkiverse/cxf/it/soap12/Soap12Rest.java b/integration-tests/client-server/src/main/java/io/quarkiverse/cxf/it/soap12/Soap12Rest.java index 7eb5c6539..8b7cf4ca4 100644 --- a/integration-tests/client-server/src/main/java/io/quarkiverse/cxf/it/soap12/Soap12Rest.java +++ b/integration-tests/client-server/src/main/java/io/quarkiverse/cxf/it/soap12/Soap12Rest.java @@ -15,11 +15,17 @@ public class Soap12Rest { @CXFClient("soap12") HelloService soap12; + @CXFClient("contentType") + HelloService contentType; + HelloService getClient(String clientName) { switch (clientName) { case "soap12": { return soap12; } + case "contentType": { + return contentType; + } default: throw new IllegalArgumentException("Unexpected client name: " + clientName); } diff --git a/integration-tests/client-server/src/main/resources/application.properties b/integration-tests/client-server/src/main/resources/application.properties index 364f29dff..da24ee728 100644 --- a/integration-tests/client-server/src/main/resources/application.properties +++ b/integration-tests/client-server/src/main/resources/application.properties @@ -129,6 +129,12 @@ quarkus.cxf.client.soap12.soap-binding = http://www.w3.org/2003/05/soap/bindings quarkus.cxf.client.soap12.logging.enabled = true #quarkus.cxf.client.soap12.http-conduit-factory = URLConnectionHTTPConduitFactory +quarkus.cxf.client.contentType.client-endpoint-url = http://localhost:${quarkus.http.test-port}/soap/soap12 +quarkus.cxf.client.contentType.service-interface = io.quarkiverse.cxf.it.HelloService +#quarkus.cxf.client.contentType.soap-binding = http://www.w3.org/2003/05/soap/bindings/HTTP/ +quarkus.cxf.client.contentType.content-type = application/soap+xml; action="contentTypeAction" +quarkus.cxf.client.contentType.logging.enabled = true + quarkus.cxf.endpoint."/soap12".implementor = io.quarkiverse.cxf.it.soap12.Soap12HelloServiceImpl quarkus.cxf.endpoint."/soap12".soap-binding = http://www.w3.org/2003/05/soap/bindings/HTTP/ quarkus.cxf.endpoint."/soap12".logging.enabled = true diff --git a/integration-tests/client-server/src/test/java/io/quarkiverse/cxf/it/soap12/Soap12Test.java b/integration-tests/client-server/src/test/java/io/quarkiverse/cxf/it/soap12/Soap12Test.java index be8932be9..70351cbf1 100644 --- a/integration-tests/client-server/src/test/java/io/quarkiverse/cxf/it/soap12/Soap12Test.java +++ b/integration-tests/client-server/src/test/java/io/quarkiverse/cxf/it/soap12/Soap12Test.java @@ -19,4 +19,15 @@ void soap12() { .body(Matchers.is("Hello Joe, Content-Type: application/soap+xml; action=\"helloAction\"; charset=UTF-8")); } + @Test + void contentType() { + RestAssured.given() + .body("Joe") + .post("/Soap12Rest/sync/contentType") + .then() + .statusCode(200) + .body(Matchers + .is("Hello Joe, Content-Type: application/soap+xml; action=\"contentTypeAction\"; charset=UTF-8")); + } + }