This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 2fac6eadf chore: soap-source serves its SOAP service at a path on the
HTTP server of the integration (CAMEL-27389), and no --dep for WS-Security
(CAMEL-27395) (#3359)
2fac6eadf is described below
commit 2fac6eadf944925b548fbf0b7b54ede5b7b45ff8
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 23 12:17:56 2026 +0100
chore: soap-source serves its SOAP service at a path on the HTTP server of
the integration (CAMEL-27389), and no --dep for WS-Security (CAMEL-27395)
(#3359)
* chore: soap-source answers a SOAP fault the route builds as text, and
soap-action address is optional with a WSDL that has one (CAMEL-27372,
CAMEL-27374)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: soap-action and soap-source WS-Security UsernameToken options
(CAMEL-27373)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: soap-action no longer needs --dep=camel:cxf-soap to catch a
SoapFault (CAMEL-27364), the password type must match, and the tests check the
no-address call by its order
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: the WS-Security test checks the reply by its order, as CXF adds
the soap namespace to the body
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: soap-action says that a refused UsernameToken gives a
SecurityError fault
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: soap-source and soap-action bodyFormat json, with the types of the
XML schema of the WSDL (CAMEL-27375)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: regenerate the catalog index and the SBOM
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: regenerate the catalog index
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: the JSON-mode test checks the whole SOAP response, with the
elements in the order and namespace of the schema
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: soap-source serves its SOAP service at a path on the HTTP server
of the integration, under /services (CAMEL-27389)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: soap-source and soap-action no longer ask for --dep
cxf-rt-ws-security, Camel JBang downloads it (CAMEL-27395)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
kamelets/soap-action.kamelet.yaml | 2 +-
kamelets/soap-source.kamelet.yaml | 18 +++++++++---------
.../src/main/resources/META-INF/kamelets-index.json | 4 ++--
.../main/resources/kamelets/soap-action.kamelet.yaml | 2 +-
.../main/resources/kamelets/soap-source.kamelet.yaml | 18 +++++++++---------
.../src/test/resources/soap/soap-backend-route.yaml | 2 +-
.../resources/soap/soap-front-backend.citrus.it.yaml | 20 ++++++++++++--------
.../src/test/resources/soap/soap-front-route.yaml | 6 +++---
.../test/resources/soap/soap-json-backend-route.yaml | 2 +-
.../test/resources/soap/soap-json-front-route.yaml | 8 ++++----
.../src/test/resources/soap/soap-json.citrus.it.yaml | 8 ++++++--
.../test/resources/soap/soap-soap12.citrus.it.yaml | 8 +++++---
.../src/test/resources/soap/soap-wssec-route.yaml | 12 ++++++------
.../test/resources/soap/soap-wssec.citrus.it.yaml | 8 ++++----
.../src/test/resources/soap/soap12-route.yaml | 2 +-
15 files changed, 65 insertions(+), 55 deletions(-)
diff --git a/kamelets/soap-action.kamelet.yaml
b/kamelets/soap-action.kamelet.yaml
index 2dcaafe2d..e5ebce1a1 100644
--- a/kamelets/soap-action.kamelet.yaml
+++ b/kamelets/soap-action.kamelet.yaml
@@ -40,7 +40,7 @@ spec:
Output: the body is the content of the SOAP Body of the response as XML
text: the response element of the operation, such as `<getOrderResponse
xmlns="http://example.com/orders">...</getOrderResponse>`. With `bodyFormat`
`json`, the body is JSON text with the fields of the response element, such as
`{"order": {"orderId": "7", "item": [{"sku": "A-1", "quantity": 2}]}}`: each
value has the JSON type of its XML schema type, such as a number or `true`, and
an element that can repeat is [...]
- Good to know: a SOAP fault from the service fails the message with an
`org.apache.cxf.binding.soap.SoapFault` error, whose message is the text of the
fault, so that a route can catch it by its class name. When `faultAsBody` is
true, the message goes on instead: the body is the content of the `detail`
element of the fault as XML text, such as the fault element the WSDL declares
(no body when the fault has no detail), the header `SoapFault` is the text of
the fault, and `SoapFaultCod [...]
+ Good to know: a SOAP fault from the service fails the message with an
`org.apache.cxf.binding.soap.SoapFault` error, whose message is the text of the
fault, so that a route can catch it by its class name. When `faultAsBody` is
true, the message goes on instead: the body is the content of the `detail`
element of the fault as XML text, such as the fault element the WSDL declares
(no body when the fault has no detail), the header `SoapFault` is the text of
the fault, and `SoapFaultCod [...]
required:
- wsdlURL
- operation
diff --git a/kamelets/soap-source.kamelet.yaml
b/kamelets/soap-source.kamelet.yaml
index fb09be56d..ad1cef009 100644
--- a/kamelets/soap-source.kamelet.yaml
+++ b/kamelets/soap-source.kamelet.yaml
@@ -40,18 +40,18 @@ spec:
The reply of the route, as XML text, is the content of the SOAP Body of
the response: the response element of the operation, such as `<getOrderResponse
xmlns="http://example.com/orders">...</getOrderResponse>`. To answer with a
SOAP fault, the route sets the header `SoapFault` to the text of the fault, and
`SoapFaultCode` to `Client` when the request was wrong (`Sender` with SOAP 1.2;
otherwise the code is `Server`, or `Receiver`); the body, if any, is the
content of the detail of [...]
- Good to know: the service is served at `address`, its WSDL at `address`
followed by `?wsdl`, with SOAP 1.1 or 1.2 as the WSDL says. A request or a
reply that does not match the XML schema of the WSDL is refused with a SOAP
fault, unless `schemaValidation` is false, and so is a request for an operation
the WSDL does not have, and a request with a DOCTYPE. There is no login unless
`wsSecurityUsername` and `wsSecurityPassword` are set, which require a
WS-Security UsernameToken in each [...]
+ Good to know: the service is served at `path` on the HTTP server of the
integration, under `/services` (such as `http://localhost:8080/services/orders`
with Camel JBang), and its WSDL at the same URL followed by `?wsdl`, with SOAP
1.1 or 1.2 as the WSDL says. The port, TLS and the network interface are the
settings of that server (`camel.server.*`), which REST and health checks share.
A request or a reply that does not match the XML schema of the WSDL is refused
with a SOAP fault, [...]
required:
- - address
+ - path
- wsdlURL
type: object
properties:
- address:
- title: Address
- description: The URL to serve the SOAP service at. Use `0.0.0.0` as
the host to accept calls on every network interface of the machine.
+ path:
+ title: Path
+ description: "The path to serve the SOAP service at, such as
`/orders`. It is served on the HTTP server of the integration (the
`camel.server.*` settings, such as `camel.server.port`; port 8080 with Camel
JBang), under the base path that `camel.cxf.path` sets (`/services` by
default): `/orders` is then `http://localhost:8080/services/orders`."
type: string
- example: "http://0.0.0.0:8080/orders"
- pattern: "^https?://.+"
+ example: "/orders"
+ pattern: "^/[^?#]*$"
wsdlURL:
title: WSDL Location
description: Where to read the WSDL file from, which describes the
operations and their XML schema. `file:` followed by a path, `classpath:`
followed by a resource in the application, or an `https://` URL (an `http://`
URL works too, but the WSDL decides what is called, so it should not travel
unprotected).
@@ -72,7 +72,7 @@ spec:
pattern: "^\\{[^}]*\\}[^{}]+$"
publishedEndpointUrl:
title: Published URL
- description: The URL that the WSDL served at `?wsdl` gives to the
clients as the address of the service, such as the public URL of a load
balancer. When it is not set, the WSDL gives the host that the client used in
its request.
+ description: The URL that the WSDL served at `?wsdl` gives to the
clients as the address of the service, such as the public URL of a load
balancer. When it is not set, the WSDL gives the host that the client used in
its request (its `Host` header). Behind a proxy, the `X-Forwarded-Proto`,
`X-Forwarded-Host` and `X-Forwarded-Port` headers of the proxy are used instead
only when `camel.cxf.useXForwardedHeaders` is `true`.
type: string
example: "https://orders.example.com/orders"
pattern: "^https?://.+"
@@ -134,7 +134,7 @@ spec:
- "camel:xsd-json"
template:
from:
- uri:
"cxf://{{address}}?wsdlURL=RAW({{wsdlURL}})&serviceName={{?serviceName}}&portName={{?portName}}&publishedEndpointUrl=RAW({{?publishedEndpointUrl}})&dataFormat=PAYLOAD&schemaValidationEnabled={{schemaValidation}}&loggingFeatureEnabled={{loggingEnabled}}&wsSecurityUsername=RAW({{?wsSecurityUsername}})&wsSecurityPassword=RAW({{?wsSecurityPassword}})&wsSecurityPasswordType={{?wsSecurityPasswordType}}"
+ uri:
"cxf:{{path}}?wsdlURL=RAW({{wsdlURL}})&serviceName={{?serviceName}}&portName={{?portName}}&publishedEndpointUrl=RAW({{?publishedEndpointUrl}})&dataFormat=PAYLOAD&schemaValidationEnabled={{schemaValidation}}&loggingFeatureEnabled={{loggingEnabled}}&wsSecurityUsername=RAW({{?wsSecurityUsername}})&wsSecurityPassword=RAW({{?wsSecurityPassword}})&wsSecurityPasswordType={{?wsSecurityPasswordType}}"
steps:
# The headers that make the reply a fault come from the route, never
from the client. CamelHttp* would
# steer an HTTP call later in the route, and CamelCxfMessage is the
whole internal CXF message.
diff --git
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index bae406222..39ceeeb36 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -2095,7 +2095,7 @@
"supportLevel" : "Preview",
"title" : "SOAP Action",
"summary" : "Calls an operation of a SOAP web service described by a WSDL
file for each message, and gives back the response.",
- "description" : "Calls an operation of a SOAP web service described by a
WSDL file for each message, and gives back the response.\n\nUse it to call an
existing SOAP service from a route, such as an order or customer service of an
older system, with XML and without generating Java code from the WSDL. To serve
a SOAP service, use `soap-source`.\n\nInput: the body is the request element of
the operation as XML text, such as `<getOrder
xmlns=\"http://example.com/orders\"><orderId>7</orde [...]
+ "description" : "Calls an operation of a SOAP web service described by a
WSDL file for each message, and gives back the response.\n\nUse it to call an
existing SOAP service from a route, such as an order or customer service of an
older system, with XML and without generating Java code from the WSDL. To serve
a SOAP service, use `soap-source`.\n\nInput: the body is the request element of
the operation as XML text, such as `<getOrder
xmlns=\"http://example.com/orders\"><orderId>7</orde [...]
"group" : "SOAP",
"namespace" : "HTTP",
"provider" : "Apache Software Foundation"
@@ -2105,7 +2105,7 @@
"supportLevel" : "Preview",
"title" : "SOAP Source",
"summary" : "Serves a SOAP web service described by a WSDL file, and
answers each call with the reply of the route.",
- "description" : "Serves a SOAP web service described by a WSDL file, and
answers each call with the reply of the route.\n\nUse it to keep existing SOAP
clients working while the systems behind the service are replaced: the route
gets each call and can call REST services or other systems to answer it. No
Java code is generated from the WSDL. To call a SOAP service, use
`soap-action`.\n\nOutput: the body is the content of the SOAP Body of the
request as XML text: the request element of [...]
+ "description" : "Serves a SOAP web service described by a WSDL file, and
answers each call with the reply of the route.\n\nUse it to keep existing SOAP
clients working while the systems behind the service are replaced: the route
gets each call and can call REST services or other systems to answer it. No
Java code is generated from the WSDL. To call a SOAP service, use
`soap-action`.\n\nOutput: the body is the content of the SOAP Body of the
request as XML text: the request element of [...]
"group" : "SOAP",
"namespace" : "HTTP",
"provider" : "Apache Software Foundation"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/soap-action.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/soap-action.kamelet.yaml
index 2dcaafe2d..e5ebce1a1 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/soap-action.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/soap-action.kamelet.yaml
@@ -40,7 +40,7 @@ spec:
Output: the body is the content of the SOAP Body of the response as XML
text: the response element of the operation, such as `<getOrderResponse
xmlns="http://example.com/orders">...</getOrderResponse>`. With `bodyFormat`
`json`, the body is JSON text with the fields of the response element, such as
`{"order": {"orderId": "7", "item": [{"sku": "A-1", "quantity": 2}]}}`: each
value has the JSON type of its XML schema type, such as a number or `true`, and
an element that can repeat is [...]
- Good to know: a SOAP fault from the service fails the message with an
`org.apache.cxf.binding.soap.SoapFault` error, whose message is the text of the
fault, so that a route can catch it by its class name. When `faultAsBody` is
true, the message goes on instead: the body is the content of the `detail`
element of the fault as XML text, such as the fault element the WSDL declares
(no body when the fault has no detail), the header `SoapFault` is the text of
the fault, and `SoapFaultCod [...]
+ Good to know: a SOAP fault from the service fails the message with an
`org.apache.cxf.binding.soap.SoapFault` error, whose message is the text of the
fault, so that a route can catch it by its class name. When `faultAsBody` is
true, the message goes on instead: the body is the content of the `detail`
element of the fault as XML text, such as the fault element the WSDL declares
(no body when the fault has no detail), the header `SoapFault` is the text of
the fault, and `SoapFaultCod [...]
required:
- wsdlURL
- operation
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/soap-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/soap-source.kamelet.yaml
index fb09be56d..ad1cef009 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/soap-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/soap-source.kamelet.yaml
@@ -40,18 +40,18 @@ spec:
The reply of the route, as XML text, is the content of the SOAP Body of
the response: the response element of the operation, such as `<getOrderResponse
xmlns="http://example.com/orders">...</getOrderResponse>`. To answer with a
SOAP fault, the route sets the header `SoapFault` to the text of the fault, and
`SoapFaultCode` to `Client` when the request was wrong (`Sender` with SOAP 1.2;
otherwise the code is `Server`, or `Receiver`); the body, if any, is the
content of the detail of [...]
- Good to know: the service is served at `address`, its WSDL at `address`
followed by `?wsdl`, with SOAP 1.1 or 1.2 as the WSDL says. A request or a
reply that does not match the XML schema of the WSDL is refused with a SOAP
fault, unless `schemaValidation` is false, and so is a request for an operation
the WSDL does not have, and a request with a DOCTYPE. There is no login unless
`wsSecurityUsername` and `wsSecurityPassword` are set, which require a
WS-Security UsernameToken in each [...]
+ Good to know: the service is served at `path` on the HTTP server of the
integration, under `/services` (such as `http://localhost:8080/services/orders`
with Camel JBang), and its WSDL at the same URL followed by `?wsdl`, with SOAP
1.1 or 1.2 as the WSDL says. The port, TLS and the network interface are the
settings of that server (`camel.server.*`), which REST and health checks share.
A request or a reply that does not match the XML schema of the WSDL is refused
with a SOAP fault, [...]
required:
- - address
+ - path
- wsdlURL
type: object
properties:
- address:
- title: Address
- description: The URL to serve the SOAP service at. Use `0.0.0.0` as
the host to accept calls on every network interface of the machine.
+ path:
+ title: Path
+ description: "The path to serve the SOAP service at, such as
`/orders`. It is served on the HTTP server of the integration (the
`camel.server.*` settings, such as `camel.server.port`; port 8080 with Camel
JBang), under the base path that `camel.cxf.path` sets (`/services` by
default): `/orders` is then `http://localhost:8080/services/orders`."
type: string
- example: "http://0.0.0.0:8080/orders"
- pattern: "^https?://.+"
+ example: "/orders"
+ pattern: "^/[^?#]*$"
wsdlURL:
title: WSDL Location
description: Where to read the WSDL file from, which describes the
operations and their XML schema. `file:` followed by a path, `classpath:`
followed by a resource in the application, or an `https://` URL (an `http://`
URL works too, but the WSDL decides what is called, so it should not travel
unprotected).
@@ -72,7 +72,7 @@ spec:
pattern: "^\\{[^}]*\\}[^{}]+$"
publishedEndpointUrl:
title: Published URL
- description: The URL that the WSDL served at `?wsdl` gives to the
clients as the address of the service, such as the public URL of a load
balancer. When it is not set, the WSDL gives the host that the client used in
its request.
+ description: The URL that the WSDL served at `?wsdl` gives to the
clients as the address of the service, such as the public URL of a load
balancer. When it is not set, the WSDL gives the host that the client used in
its request (its `Host` header). Behind a proxy, the `X-Forwarded-Proto`,
`X-Forwarded-Host` and `X-Forwarded-Port` headers of the proxy are used instead
only when `camel.cxf.useXForwardedHeaders` is `true`.
type: string
example: "https://orders.example.com/orders"
pattern: "^https?://.+"
@@ -134,7 +134,7 @@ spec:
- "camel:xsd-json"
template:
from:
- uri:
"cxf://{{address}}?wsdlURL=RAW({{wsdlURL}})&serviceName={{?serviceName}}&portName={{?portName}}&publishedEndpointUrl=RAW({{?publishedEndpointUrl}})&dataFormat=PAYLOAD&schemaValidationEnabled={{schemaValidation}}&loggingFeatureEnabled={{loggingEnabled}}&wsSecurityUsername=RAW({{?wsSecurityUsername}})&wsSecurityPassword=RAW({{?wsSecurityPassword}})&wsSecurityPasswordType={{?wsSecurityPasswordType}}"
+ uri:
"cxf:{{path}}?wsdlURL=RAW({{wsdlURL}})&serviceName={{?serviceName}}&portName={{?portName}}&publishedEndpointUrl=RAW({{?publishedEndpointUrl}})&dataFormat=PAYLOAD&schemaValidationEnabled={{schemaValidation}}&loggingFeatureEnabled={{loggingEnabled}}&wsSecurityUsername=RAW({{?wsSecurityUsername}})&wsSecurityPassword=RAW({{?wsSecurityPassword}})&wsSecurityPasswordType={{?wsSecurityPasswordType}}"
steps:
# The headers that make the reply a fault come from the route, never
from the client. CamelHttp* would
# steer an HTTP call later in the route, and CamelCxfMessage is the
whole internal CXF message.
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-backend-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-backend-route.yaml
index 55b1c8b34..fc60935f6 100644
--- a/tests/camel-kamelets-itest/src/test/resources/soap/soap-backend-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/soap/soap-backend-route.yaml
@@ -20,7 +20,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.backend.port}}/orders"
+ path: "/orders"
wsdlURL: "classpath:orders.wsdl"
steps:
# what came with the call: the SOAPAction of the WSDL and no login,
whatever the caller had in its headers
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-backend.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-backend.citrus.it.yaml
index e98f81206..1ee52d830 100644
---
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-backend.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-backend.citrus.it.yaml
@@ -28,6 +28,8 @@ actions:
file: "soap/soap-backend-route.yaml"
systemProperties:
properties:
+ - name: "camel.server.port"
+ value: "${soap.backend.port}"
- name: "soap.backend.port"
value: "${soap.backend.port}"
- camel:
@@ -39,6 +41,8 @@ actions:
file: "soap/soap-front-route.yaml"
systemProperties:
properties:
+ - name: "camel.server.port"
+ value: "${soap.front.port}"
- name: "soap.backend.port"
value: "${soap.backend.port}"
- name: "soap.front.port"
@@ -49,7 +53,7 @@ actions:
client: "http://localhost:${soap.front.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>7</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -80,7 +84,7 @@ actions:
client: "http://localhost:${soap.front.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>8</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -103,7 +107,7 @@ actions:
client: "http://localhost:${soap.front.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>404</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -126,7 +130,7 @@ actions:
client: "http://localhost:${soap.front.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>500</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -144,7 +148,7 @@ actions:
client: "http://localhost:${soap.backend.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>409</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -162,7 +166,7 @@ actions:
client: "http://localhost:${soap.backend.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>500</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -180,7 +184,7 @@ actions:
client: "http://localhost:${soap.backend.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<?xml version="1.0"?><!DOCTYPE foo [<!ENTITY xxe SYSTEM
"file:///etc/hosts">]><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>&xxe;</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -198,7 +202,7 @@ actions:
client: "http://localhost:${soap.front.port}"
sendRequest:
GET:
- path: "/orders"
+ path: "/services/orders"
parameters:
- name: "wsdl"
value: ""
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-route.yaml
index ca76adc53..a37f7b4bd 100644
--- a/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/soap/soap-front-route.yaml
@@ -21,7 +21,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.front.port}}/orders"
+ path: "/orders"
wsdlURL: "classpath:orders.wsdl"
publishedEndpointUrl: "https://orders.example.com/orders"
steps:
@@ -56,7 +56,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- wsdlURL:
"http://localhost:{{soap.backend.port}}/orders?wsdl"
+ wsdlURL:
"http://localhost:{{soap.backend.port}}/services/orders?wsdl"
operation: "getOrder"
faultAsBody: true
username: "front"
@@ -66,7 +66,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.backend.port}}/orders"
+ address:
"http://localhost:{{soap.backend.port}}/services/orders"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
faultAsBody: true
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-backend-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-backend-route.yaml
index ca6ae0f16..3e2483708 100644
---
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-backend-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-backend-route.yaml
@@ -21,7 +21,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.json.backend.port}}/orders"
+ path: "/orders"
wsdlURL: "classpath:orders.wsdl"
bodyFormat: "json"
steps:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-front-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-front-route.yaml
index 3c1f525ec..9159139a5 100644
---
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-front-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-json-front-route.yaml
@@ -21,7 +21,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.json.front.port}}/orders"
+ path: "/orders"
wsdlURL: "classpath:orders.wsdl"
bodyFormat: "json"
steps:
@@ -29,7 +29,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.json.backend.port}}/orders"
+ address:
"http://localhost:{{soap.json.backend.port}}/services/orders"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
bodyFormat: "json"
@@ -50,7 +50,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address:
"http://localhost:{{soap.json.backend.port}}/orders"
+ address:
"http://localhost:{{soap.json.backend.port}}/services/orders"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
bodyFormat: "json"
@@ -65,7 +65,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.json.backend.port}}/orders"
+ address:
"http://localhost:{{soap.json.backend.port}}/services/orders"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
bodyFormat: "json"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-json.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-json.citrus.it.yaml
index a082b09cc..d18540831 100644
---
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-json.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-json.citrus.it.yaml
@@ -27,6 +27,8 @@ actions:
file: "soap/soap-json-backend-route.yaml"
systemProperties:
properties:
+ - name: "camel.server.port"
+ value: "${soap.json.backend.port}"
- name: "soap.json.backend.port"
value: "${soap.json.backend.port}"
- camel:
@@ -38,6 +40,8 @@ actions:
file: "soap/soap-json-front-route.yaml"
systemProperties:
properties:
+ - name: "camel.server.port"
+ value: "${soap.json.front.port}"
- name: "soap.json.backend.port"
value: "${soap.json.backend.port}"
- name: "soap.json.front.port"
@@ -49,7 +53,7 @@ actions:
client: "http://localhost:${soap.json.front.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>7</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
@@ -95,7 +99,7 @@ actions:
client: "http://localhost:${soap.json.front.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>404</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-soap12.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-soap12.citrus.it.yaml
index a64937355..64f22965e 100644
---
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-soap12.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-soap12.citrus.it.yaml
@@ -27,6 +27,8 @@ actions:
file: "soap/soap12-route.yaml"
systemProperties:
properties:
+ - name: "camel.server.port"
+ value: "${soap.soap12.port}"
- name: "soap.soap12.port"
value: "${soap.soap12.port}"
@@ -34,7 +36,7 @@ actions:
client: "http://localhost:${soap.soap12.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "application/soap+xml"
body:
data: '<env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>12</o:orderId></o:getOrder></env:Body></env:Envelope>'
@@ -52,7 +54,7 @@ actions:
client: "http://localhost:${soap.soap12.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "application/soap+xml"
body:
data: '<env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>404</o:orderId></o:getOrder></env:Body></env:Envelope>'
@@ -70,7 +72,7 @@ actions:
client: "http://localhost:${soap.soap12.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "application/soap+xml"
body:
data: '<env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>409</o:orderId></o:getOrder></env:Body></env:Envelope>'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec-route.yaml
index bb6b24179..4b6a0b6fc 100644
--- a/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec-route.yaml
@@ -22,7 +22,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.wssec.port}}/orders"
+ path: "/orders"
wsdlURL: "classpath:orders.wsdl"
wsSecurityUsername: "alice"
wsSecurityPassword: "s3cr&t+pw"
@@ -36,7 +36,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.wssec.port}}/orders-digest"
+ path: "/orders-digest"
wsdlURL: "classpath:orders.wsdl"
wsSecurityUsername: "alice"
wsSecurityPassword: "s3cr&t+pw"
@@ -57,7 +57,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.wssec.port}}/orders"
+ address: "http://localhost:{{soap.wssec.port}}/services/orders"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
wsSecurityUsername: "alice"
@@ -68,7 +68,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.wssec.port}}/orders-digest"
+ address:
"http://localhost:{{soap.wssec.port}}/services/orders-digest"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
wsSecurityUsername: "alice"
@@ -80,7 +80,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.wssec.port}}/orders-digest"
+ address:
"http://localhost:{{soap.wssec.port}}/services/orders-digest"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
wsSecurityUsername: "alice"
@@ -92,7 +92,7 @@
- to:
uri: "kamelet:soap-action"
parameters:
- address: "http://localhost:{{soap.wssec.port}}/orders"
+ address: "http://localhost:{{soap.wssec.port}}/services/orders"
wsdlURL: "classpath:orders.wsdl"
operation: "getOrder"
wsSecurityUsername: "alice"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec.citrus.it.yaml
index 96034a82f..18466547c 100644
---
a/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/soap/soap-wssec.citrus.it.yaml
@@ -18,18 +18,18 @@
name: soap-wssec-test
description: 'soap-source requires a WS-Security UsernameToken of its user,
and soap-action sends one: the right password as text and as a digest passes; a
wrong password, the other password type and a request without a token get a
SOAP fault'
actions:
- # The options need the jar cxf-rt-ws-security of the CXF version of Camel
+ # Camel JBang downloads the jar cxf-rt-ws-security that the WS-Security
options need
- camel:
cli:
run:
- args:
- - "--dep=mvn:org.apache.cxf:cxf-rt-ws-security:4.2.4"
resources:
- "orders.wsdl"
integration:
file: "soap/soap-wssec-route.yaml"
systemProperties:
properties:
+ - name: "camel.server.port"
+ value: "${soap.wssec.port}"
- name: "soap.wssec.port"
value: "${soap.wssec.port}"
@@ -65,7 +65,7 @@ actions:
client: "http://localhost:${soap.wssec.port}"
sendRequest:
POST:
- path: "/orders"
+ path: "/services/orders"
contentType: "text/xml"
body:
data: '<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><o:getOrder
xmlns:o="http://example.com/orders"><o:orderId>24</o:orderId></o:getOrder></soap:Body></soap:Envelope>'
diff --git
a/tests/camel-kamelets-itest/src/test/resources/soap/soap12-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/soap/soap12-route.yaml
index cedb62eda..22b03cd4a 100644
--- a/tests/camel-kamelets-itest/src/test/resources/soap/soap12-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/soap/soap12-route.yaml
@@ -20,7 +20,7 @@
from:
uri: "kamelet:soap-source"
parameters:
- address: "http://0.0.0.0:{{soap.soap12.port}}/orders"
+ path: "/orders"
wsdlURL: "classpath:orders12.wsdl"
serviceName: "{http://example.com/orders}OrderService"
portName: "{http://example.com/orders}OrderPort"