You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/03/13 15:50:03 UTC

[camel-quarkus] branch master updated: Add soap dataformat quarkus extension fix #763

This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a3a2ea  Add soap dataformat quarkus extension fix #763
1a3a2ea is described below

commit 1a3a2ea9f789b998ddca4bb95822c2b72c6d46e5
Author: mmelko <mm...@redhat.com>
AuthorDate: Thu Mar 12 14:36:29 2020 +0100

    Add soap dataformat quarkus extension
    fix #763
---
 .github/workflows/pr-build.yaml                    |   1 +
 .../pages/list-of-camel-quarkus-extensions.adoc    |   4 +-
 extensions/pom.xml                                 |   1 +
 extensions/readme.adoc                             |   4 +-
 extensions/soap/deployment/pom.xml                 |  80 ++++++++++++++
 .../component/soap/deployment/SoapProcessor.java   |  31 ++++++
 extensions/soap/pom.xml                            |  50 +++++++++
 extensions/soap/runtime/pom.xml                    |  96 ++++++++++++++++
 .../main/resources/META-INF/quarkus-extension.yaml |  28 +++++
 integration-tests/pom.xml                          |   1 +
 integration-tests/soap/pom.xml                     | 122 +++++++++++++++++++++
 .../quarkus/component/soap/it/SoapResource.java    |  96 ++++++++++++++++
 .../quarkus/component/soap/it/SoapRoutes.java      |  43 ++++++++
 .../soap/it/example/GetCustomersByName.java        |  55 ++++++++++
 .../component/soap/it/example/ObjectFactory.java   |  65 +++++++++++
 .../camel/quarkus/component/soap/it/SoapIT.java    |  24 ++++
 .../camel/quarkus/component/soap/it/SoapTest.java  |  97 ++++++++++++++++
 pom.xml                                            |   1 +
 poms/bom-deployment/pom.xml                        |   5 +
 poms/bom/pom.xml                                   |  15 +++
 20 files changed, 817 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml
index d556475..ab79acc 100644
--- a/.github/workflows/pr-build.yaml
+++ b/.github/workflows/pr-build.yaml
@@ -114,6 +114,7 @@ jobs:
               dataformat
               jaxb
               xstream
+              soap
           - category: Foundation
             test-modules: >
               bean
diff --git a/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc b/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
index c34986f..f96d237 100644
--- a/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
+++ b/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
@@ -258,7 +258,7 @@ Number of Camel components: 76 in 66 JAR artifacts (0 deprecated)
 == Camel Data Formats
 
 // dataformats: START
-Number of Camel data formats: 23 in 18 JAR artifacts (0 deprecated)
+Number of Camel data formats: 24 in 19 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
@@ -298,6 +298,8 @@ Number of Camel data formats: 23 in 18 JAR artifacts (0 deprecated)
 
 | link:https://camel.apache.org/components/latest/mime-multipart-dataformat.html[MIME Multipart] (camel-quarkus-mail) | 0.2.0 | The MIME Multipart data format is used for marshalling Camel messages with attachments into MIME-Multipart message, and vise-versa.
 
+| link:https://camel.apache.org/components/latest/soapjaxb-dataformat.html[SOAP] (camel-quarkus-soap) | 1.0.0-M5 | SOAP is a data format which uses JAXB2 and JAX-WS annotations to marshal and unmarshal SOAP payloads.
+
 | link:https://camel.apache.org/components/latest/tarfile-dataformat.html[Tar File] (camel-quarkus-tarfile) | 0.3.0 | The Tar File data format is a message compression and de-compression format of tar files.
 
 | link:https://camel.apache.org/components/latest/tidyMarkup-dataformat.html[TidyMarkup] (camel-quarkus-tagsoup) | 1.0.0-M1 | TidyMarkup data format is used for parsing HTML and return it as pretty well-formed HTML.
diff --git a/extensions/pom.xml b/extensions/pom.xml
index 1b73756..b679ea9 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -108,6 +108,7 @@
         <module>sjms2</module>
         <module>slack</module>
         <module>snakeyaml</module>
+        <module>soap</module>
         <module>sql</module>
         <module>stream</module>
         <module>tagsoup</module>
diff --git a/extensions/readme.adoc b/extensions/readme.adoc
index e4bedfd..5cee1b8 100644
--- a/extensions/readme.adoc
+++ b/extensions/readme.adoc
@@ -246,7 +246,7 @@ Number of Camel components: 76 in 66 JAR artifacts (0 deprecated)
 == Camel Data Formats
 
 // dataformats: START
-Number of Camel data formats: 23 in 18 JAR artifacts (0 deprecated)
+Number of Camel data formats: 24 in 19 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
@@ -286,6 +286,8 @@ Number of Camel data formats: 23 in 18 JAR artifacts (0 deprecated)
 
 | link:https://camel.apache.org/components/latest/mime-multipart-dataformat.html[MIME Multipart] (camel-quarkus-mail) | 0.2.0 | The MIME Multipart data format is used for marshalling Camel messages with attachments into MIME-Multipart message, and vise-versa.
 
+| link:https://camel.apache.org/components/latest/soapjaxb-dataformat.html[SOAP] (camel-quarkus-soap) | 1.0.0-M5 | SOAP is a data format which uses JAXB2 and JAX-WS annotations to marshal and unmarshal SOAP payloads.
+
 | link:https://camel.apache.org/components/latest/tarfile-dataformat.html[Tar File] (camel-quarkus-tarfile) | 0.3.0 | The Tar File data format is a message compression and de-compression format of tar files.
 
 | link:https://camel.apache.org/components/latest/tidyMarkup-dataformat.html[TidyMarkup] (camel-quarkus-tagsoup) | 1.0.0-M1 | TidyMarkup data format is used for parsing HTML and return it as pretty well-formed HTML.
diff --git a/extensions/soap/deployment/pom.xml b/extensions/soap/deployment/pom.xml
new file mode 100644
index 0000000..4bd3597
--- /dev/null
+++ b/extensions/soap/deployment/pom.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-soap-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-soap-deployment</artifactId>
+    <name>Camel Quarkus :: Soap dataformat :: Deployment</name>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom-deployment</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-core-deployment</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-jaxb-deployment</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-soap</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>io.quarkus</groupId>
+                            <artifactId>quarkus-extension-processor</artifactId>
+                            <version>${quarkus.version}</version>
+                        </path>
+                    </annotationProcessorPaths>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/extensions/soap/deployment/src/main/java/org/apache/camel/quarkus/component/soap/deployment/SoapProcessor.java b/extensions/soap/deployment/src/main/java/org/apache/camel/quarkus/component/soap/deployment/SoapProcessor.java
new file mode 100644
index 0000000..839d62e
--- /dev/null
+++ b/extensions/soap/deployment/src/main/java/org/apache/camel/quarkus/component/soap/deployment/SoapProcessor.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.deployment;
+
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+
+class SoapProcessor {
+
+    private static final String FEATURE = "camel-soap";
+
+    @BuildStep
+    FeatureBuildItem feature() {
+        return new FeatureBuildItem(FEATURE);
+    }
+
+}
diff --git a/extensions/soap/pom.xml b/extensions/soap/pom.xml
new file mode 100644
index 0000000..6fc2be7
--- /dev/null
+++ b/extensions/soap/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-build-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../../poms/build-parent/pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-soap-parent</artifactId>
+    <name>Camel Quarkus :: Soap dataformat</name>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>deployment</module>
+        <module>runtime</module>
+    </modules>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-bom-deployment</artifactId>
+                <version>${quarkus.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+</project>
diff --git a/extensions/soap/runtime/pom.xml b/extensions/soap/runtime/pom.xml
new file mode 100644
index 0000000..f51cf58
--- /dev/null
+++ b/extensions/soap/runtime/pom.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-soap-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-soap</artifactId>
+    <name>Camel Quarkus :: Soap dataformat :: Runtime</name>
+
+    <properties>
+        <firstVersion>1.0.0-M5</firstVersion>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-soap</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.apache.camel</groupId>
+                    <artifactId>camel-jaxb</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>javax.xml.ws</groupId>
+            <artifactId>jaxws-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-jaxb</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-bootstrap-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>io.quarkus</groupId>
+                            <artifactId>quarkus-extension-processor</artifactId>
+                            <version>${quarkus.version}</version>
+                        </path>
+                    </annotationProcessorPaths>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/extensions/soap/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/soap/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 0000000..953c98a
--- /dev/null
+++ b/extensions/soap/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -0,0 +1,28 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+name: "Camel Quarkus SOAP dataformat"
+description: "Camel SOAP dataformat support"
+metadata:
+  keywords:
+  - "camel"
+  - "soap"
+  - "transformation"
+  guide: "https://quarkus.io/guides/camel"
+  categories:
+  - "integration"
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 4618e9b..8596f08 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -203,6 +203,7 @@
         <module>seda</module>
         <module>servlet</module>
         <module>slack</module>
+        <module>soap</module>
         <module>sql</module>
         <module>stream</module>
         <module>tarfile</module>
diff --git a/integration-tests/soap/pom.xml b/integration-tests/soap/pom.xml
new file mode 100644
index 0000000..97cf185
--- /dev/null
+++ b/integration-tests/soap/pom.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-integration-tests</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>camel-quarkus-integration-test-soap</artifactId>
+    <name>Camel Quarkus :: Integration Tests :: Soap dataformat</name>
+    <description>Integration tests for Camel Quarkus Soap dataformat extension</description>
+
+    <properties>
+        <!-- mvnd, a.k.a. Maven Daemon: https://github.com/gnodet/mvnd -->
+        <!-- The following rule tells mvnd to build the listed deployment modules before this module. -->
+        <!-- This is important because mvnd builds modules in parallel by default. The deployment modules are not -->
+        <!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
+        <!-- Please update rule whenever you change the dependencies of this module by running -->
+        <!--     mvn process-resources -Pformat    from the root directory -->
+        <mvnd.builder.rule>camel-quarkus-direct-deployment,camel-quarkus-soap-deployment,camel-quarkus-support-policy-deployment</mvnd.builder.rule>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-soap</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-direct</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-resteasy</artifactId>
+        </dependency>
+
+        <!-- test dependencies -->
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-junit5</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.rest-assured</groupId>
+            <artifactId>rest-assured</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.assertj</groupId>
+            <artifactId>assertj-core</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>native</id>
+            <activation>
+                <property>
+                    <name>native</name>
+                </property>
+            </activation>
+            <properties>
+                <quarkus.package.type>native</quarkus.package.type>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-failsafe-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>integration-test</goal>
+                                    <goal>verify</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>
diff --git a/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/SoapResource.java b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/SoapResource.java
new file mode 100644
index 0000000..fdf00d4
--- /dev/null
+++ b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/SoapResource.java
@@ -0,0 +1,96 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.it;
+
+import java.awt.*;
+import java.net.URI;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.apache.camel.ProducerTemplate;
+import org.apache.camel.quarkus.component.soap.it.example.GetCustomersByName;
+import org.jboss.logging.Logger;
+
+@Path("/soap")
+@ApplicationScoped
+public class SoapResource {
+
+    private static final Logger LOG = Logger.getLogger(SoapResource.class);
+
+    @Inject
+    ProducerTemplate producerTemplate;
+
+    @Path("/marshal/{soapVersion}")
+    @POST
+    @Consumes(MediaType.TEXT_PLAIN)
+    @Produces(MediaType.APPLICATION_XML)
+    public Response marshall(@PathParam("soapVersion") String soapVersion, String message) throws Exception {
+        LOG.infof("Sending to soap: %s", message);
+        GetCustomersByName request = new GetCustomersByName();
+        request.setName(message);
+
+        final String endpointUri = "direct:marshal" + (soapVersion.equals("1.2") ? "-soap12" : "");
+        final String response = producerTemplate.requestBody(endpointUri, request, String.class);
+
+        return Response
+                .created(new URI("https://camel.apache.org/"))
+                .entity(response)
+                .build();
+    }
+
+    @Path("/unmarshal/{soapVersion}")
+    @POST
+    @Consumes(MediaType.APPLICATION_XML)
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response unmarshal(@PathParam("soapVersion") String soapVersion, String message) throws Exception {
+        final String endpointUri = "direct:unmarshal" + (soapVersion.equals("1.2") ? "-soap12" : "");
+        final GetCustomersByName response = producerTemplate.requestBody(endpointUri, message, GetCustomersByName.class);
+
+        return Response
+                .created(new URI("https://camel.apache.org/"))
+                .entity(response.getName())
+                .build();
+    }
+
+    @Path("/round")
+    @POST
+    @Consumes(MediaType.TEXT_PLAIN)
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response round(String message) throws Exception {
+        LOG.infof("Sending to soap: %s", message);
+        GetCustomersByName request = new GetCustomersByName();
+        request.setName(message);
+        final String xml = producerTemplate.requestBody("direct:marshal", request, String.class);
+        LOG.infof("Got response from marshal: %s", xml);
+
+        GetCustomersByName response = producerTemplate.requestBody("direct:unmarshal", xml, GetCustomersByName.class);
+        LOG.infof("Got response from unmarshal: %s", response);
+
+        return Response
+                .created(new URI("https://camel.apache.org/"))
+                .entity(response.getName())
+                .build();
+    }
+}
diff --git a/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/SoapRoutes.java b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/SoapRoutes.java
new file mode 100644
index 0000000..571308c
--- /dev/null
+++ b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/SoapRoutes.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.it;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.dataformat.soap.SoapJaxbDataFormat;
+import org.apache.camel.dataformat.soap.name.TypeNameStrategy;
+import org.apache.camel.quarkus.component.soap.it.example.GetCustomersByName;
+
+public class SoapRoutes extends RouteBuilder {
+
+    @Override
+    public void configure() {
+        final String soapPackage = GetCustomersByName.class.getPackage().getName();
+        SoapJaxbDataFormat soap = new SoapJaxbDataFormat(soapPackage, new TypeNameStrategy());
+
+        from("direct:marshal")
+                .marshal(soap);
+
+        from("direct:unmarshal")
+                .unmarshal(soap);
+
+        from("direct:marshal-soap12")
+                .marshal().soapjaxb12(soapPackage);
+
+        from("direct:unmarshal-soap12")
+                .unmarshal().soapjaxb12(soapPackage);
+    }
+}
diff --git a/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/example/GetCustomersByName.java b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/example/GetCustomersByName.java
new file mode 100644
index 0000000..41b4e8e
--- /dev/null
+++ b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/example/GetCustomersByName.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.it.example;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getCustomersByName", namespace = "http://example.it.soap.component.quarkus.camel.apache.org/", propOrder = {
+        "name"
+})
+public class GetCustomersByName {
+
+    protected String name;
+
+    /**
+     * Gets the value of the name property.
+     *
+     * @return
+     *         possible object is
+     *         {@link String }
+     *
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     *
+     * @param value
+     *              allowed object is
+     *              {@link String }
+     *
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+}
diff --git a/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/example/ObjectFactory.java b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/example/ObjectFactory.java
new file mode 100644
index 0000000..a26ffe7
--- /dev/null
+++ b/integration-tests/soap/src/main/java/org/apache/camel/quarkus/component/soap/it/example/ObjectFactory.java
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.it.example;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the com.example.customerservice.multipart package.
+ * <p>
+ * An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _GetCustomersByName_QNAME = new QName(
+            "http://example.it.soap.component.quarkus.camel.apache.org/",
+            "getCustomersByName");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package:
+     * com.example.customerservice
+     * .multipart
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link GetCustomersByName }
+     */
+    public GetCustomersByName createGetCustomersByName() {
+        return new GetCustomersByName();
+    }
+
+    @XmlElementDecl(namespace = "http://example.it.soap.component.quarkus.camel.apache.org/", name = "getCustomersByName")
+    public JAXBElement<GetCustomersByName> createGetCustomersByName(GetCustomersByName value) {
+        return new JAXBElement<GetCustomersByName>(_GetCustomersByName_QNAME, GetCustomersByName.class, null, value);
+    }
+}
diff --git a/integration-tests/soap/src/test/java/org/apache/camel/quarkus/component/soap/it/SoapIT.java b/integration-tests/soap/src/test/java/org/apache/camel/quarkus/component/soap/it/SoapIT.java
new file mode 100644
index 0000000..cf49673
--- /dev/null
+++ b/integration-tests/soap/src/test/java/org/apache/camel/quarkus/component/soap/it/SoapIT.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.it;
+
+import io.quarkus.test.junit.NativeImageTest;
+
+@NativeImageTest
+class SoapIT extends SoapTest {
+
+}
diff --git a/integration-tests/soap/src/test/java/org/apache/camel/quarkus/component/soap/it/SoapTest.java b/integration-tests/soap/src/test/java/org/apache/camel/quarkus/component/soap/it/SoapTest.java
new file mode 100644
index 0000000..b693c93
--- /dev/null
+++ b/integration-tests/soap/src/test/java/org/apache/camel/quarkus/component/soap/it/SoapTest.java
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.soap.it;
+
+import java.util.UUID;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import io.restassured.http.ContentType;
+import org.junit.jupiter.api.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+@QuarkusTest
+class SoapTest {
+
+    @Test
+    public void testMarshal() {
+        final String msg = UUID.randomUUID().toString().replace("-", "");
+        String resp = RestAssured.given()
+                .contentType(ContentType.TEXT).body(msg).post("/soap/marshal/1.1") //
+                .then().statusCode(201)
+                .extract().body().asString();
+        assertThat(resp).contains("<ns3:getCustomersByName>");
+        assertThat(resp).contains("<name>" + msg + "</name>");
+        assertThat(resp).contains("<ns2:Envelope xmlns:ns2=\"http://schemas.xmlsoap.org/soap/envelope/\"");
+    }
+
+    @Test
+    public void testMarshalSoap12() {
+        final String msg = UUID.randomUUID().toString().replace("-", "");
+        // GetCustomersS
+        String resp = RestAssured.given()
+                .contentType(ContentType.TEXT).body(msg).post("/soap/marshal/1.2") //
+                .then().statusCode(201).extract().body().asString();
+        assertThat(resp).contains("<ns3:getCustomersByName>");
+        assertThat(resp).contains("<name>" + msg + "</name>");
+        assertThat(resp).contains("<ns2:Envelope xmlns:ns2=\"http://www.w3.org/2003/05/soap-envelope\"");
+    }
+
+    @Test
+    public void testUnmarshalSoap() {
+        final String msg = UUID.randomUUID().toString().replace("-", "");
+        String resp = RestAssured.given()
+                .contentType(ContentType.XML).body(getSoapMessage("1.1", msg)).post("/soap/unmarshal/1.1") //
+                .then().statusCode(201)
+                .extract().body().asString();
+        assertThat(resp).isEqualTo(msg);
+    }
+
+    @Test
+    public void testUnmarshalSoap12() {
+        final String msg = UUID.randomUUID().toString().replace("-", "");
+        String resp = RestAssured.given()
+                .contentType(ContentType.XML).body(getSoapMessage("1.2", msg)).post("/soap/unmarshal/1.2") //
+                .then().statusCode(201)
+                .extract().body().asString();
+        assertThat(resp).isEqualTo(msg);
+    }
+
+    @Test
+    public void round() {
+        final String msg = UUID.randomUUID().toString().replace("-", "");
+        String resp = RestAssured.given()
+                .contentType(ContentType.TEXT).body(msg).post("/soap/round") //
+                .then().statusCode(201)
+                .extract().body().asString();
+        assertThat(resp).isEqualTo(msg);
+    }
+
+    private String getSoapMessage(String namespace, String name) {
+        final String url = (namespace.equals("1.2") ? "http://www.w3.org/2003/05/soap-envelope"
+                : "http://schemas.xmlsoap.org/soap/envelope/");
+        return "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
+                "<soap:Envelope xmlns:soap=\"" + url + "\">" +
+                "<soap:Body>" +
+                "<ns2:getCustomersByName xmlns:ns2=\"http://example.it.soap.component.quarkus.camel.apache.org/\">" +
+                "<name>" + name + "</name>" +
+                "</ns2:getCustomersByName>" +
+                "</soap:Body>" +
+                "</soap:Envelope>";
+    }
+}
diff --git a/pom.xml b/pom.xml
index 8f26182..37ba283 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,6 +54,7 @@
         <snakeyaml.version>1.25</snakeyaml.version>
         <xalan.version>2.7.2</xalan.version>
         <xerces.version>2.12.0</xerces.version>
+        <java.xml.ws.version>2.3.1</java.xml.ws.version>
         <kotlin.version>1.3.61</kotlin.version>
         <!-- Keep spring.version aligned with the version used by Camel -->
         <spring.version>5.2.3.RELEASE</spring.version>
diff --git a/poms/bom-deployment/pom.xml b/poms/bom-deployment/pom.xml
index b9d4a2d..a52a123 100644
--- a/poms/bom-deployment/pom.xml
+++ b/poms/bom-deployment/pom.xml
@@ -456,6 +456,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-soap-deployment</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
                 <artifactId>camel-quarkus-sql-deployment</artifactId>
                 <version>${camel-quarkus.version}</version>
             </dependency>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 5933dd0..e16404d 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -599,6 +599,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel</groupId>
+                <artifactId>camel-soap</artifactId>
+                <version>${camel.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel</groupId>
                 <artifactId>camel-sql</artifactId>
                 <version>${camel.version}</version>
                 <exclusions>
@@ -1112,6 +1117,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-soap</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
                 <artifactId>camel-quarkus-sql</artifactId>
                 <version>${camel-quarkus.version}</version>
             </dependency>
@@ -1313,6 +1323,11 @@
                 <version>${xstream.version}</version>
             </dependency>
             <dependency>
+                <groupId>javax.xml.ws</groupId>
+                <artifactId>jaxws-api</artifactId>
+                <version>${java.xml.ws.version}</version>
+            </dependency>
+            <dependency>
                 <groupId>org.apache.httpcomponents</groupId>
                 <artifactId>httpclient-cache</artifactId>
                 <version>${httpclient.cache.version}</version>