diff --git a/docs/modules/ROOT/examples/client-server/application.properties b/docs/modules/ROOT/examples/client-server/application.properties index ec9fb9058..96e738e9c 100644 --- a/docs/modules/ROOT/examples/client-server/application.properties +++ b/docs/modules/ROOT/examples/client-server/application.properties @@ -159,10 +159,14 @@ quarkus.cxf.client.soap12.logging.enabled = true 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.content-type = application/soap+xml; action="helloAction"; foo=bar quarkus.cxf.client.contentType.logging.enabled = true +quarkus.cxf.client.contentTypeSoap12.client-endpoint-url = http://localhost:${quarkus.http.test-port}/soap/soap12 +quarkus.cxf.client.contentTypeSoap12.soap-binding = http://www.w3.org/2003/05/soap/bindings/HTTP/ +quarkus.cxf.client.contentTypeSoap12.content-type = application/soap+xml; action="helloAction"; foo=bar +quarkus.cxf.client.contentTypeSoap12.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 8b7cf4ca4..4ed6fb233 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 @@ -18,6 +18,9 @@ public class Soap12Rest { @CXFClient("contentType") HelloService contentType; + @CXFClient("contentTypeSoap12") + HelloService contentTypeSoap12; + HelloService getClient(String clientName) { switch (clientName) { case "soap12": { @@ -26,6 +29,9 @@ HelloService getClient(String clientName) { case "contentType": { return contentType; } + case "contentTypeSoap12": { + return contentTypeSoap12; + } 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 ec9fb9058..96e738e9c 100644 --- a/integration-tests/client-server/src/main/resources/application.properties +++ b/integration-tests/client-server/src/main/resources/application.properties @@ -159,10 +159,14 @@ quarkus.cxf.client.soap12.logging.enabled = true 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.content-type = application/soap+xml; action="helloAction"; foo=bar quarkus.cxf.client.contentType.logging.enabled = true +quarkus.cxf.client.contentTypeSoap12.client-endpoint-url = http://localhost:${quarkus.http.test-port}/soap/soap12 +quarkus.cxf.client.contentTypeSoap12.soap-binding = http://www.w3.org/2003/05/soap/bindings/HTTP/ +quarkus.cxf.client.contentTypeSoap12.content-type = application/soap+xml; action="helloAction"; foo=bar +quarkus.cxf.client.contentTypeSoap12.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 70351cbf1..79418044c 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 @@ -27,7 +27,18 @@ void contentType() { .then() .statusCode(200) .body(Matchers - .is("Hello Joe, Content-Type: application/soap+xml; action=\"contentTypeAction\"; charset=UTF-8")); + .is("Hello Joe, Content-Type: application/soap+xml; action=\"helloAction\"; foo=bar; charset=UTF-8")); + } + + @Test + void contentTypeSoap12() { + RestAssured.given() + .body("Joe") + .post("/Soap12Rest/sync/contentTypeSoap12") + .then() + .statusCode(200) + .body(Matchers + .is("Hello Joe, Content-Type: application/soap+xml; action=\"helloAction\"; foo=bar; charset=UTF-8")); } }