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.git
The following commit(s) were added to refs/heads/main by this push:
new f2460ea5110a chore: camel-spring-ws - deprecate the unused output and
fault action header constants (#31230)
f2460ea5110a is described below
commit f2460ea5110a4231aec189900c6f515eef04725b
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Dec 2 10:20:44 2026 +0100
chore: camel-spring-ws - deprecate the unused output and fault action
header constants (#31230)
`SpringWebserviceConstants` has two header constants that no code reads:
`CamelSpringWebserviceAddressingOutputAction` and
`CamelSpringWebserviceAddressingFaultAction`.
- Spring Web Services chooses the WS-Addressing Action of the response when
it maps the request (`WSACamelEndpointMapping.getResponseAction` /
`getFaultAction`), before the route runs. The consumer takes it from the
`outputAction` and `faultAction` options, so a header set in the route comes
too late.
- The four tests for these headers in `AbstractConsumerTests` are
`@Disabled("Not implemented yet")`.
- The headers are not in the catalog (no `@Metadata`).
This marks both constants `@Deprecated`, with a Javadoc that points to the
options. Nothing else changes: `BasicMessageFilter` still removes both headers
so they do not end up as SOAP headers of the response.
Found while declaring the message headers of the components (CAMEL-27980).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../component/spring/ws/SpringWebserviceConstants.java | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git
a/components/camel-spring-parent/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConstants.java
b/components/camel-spring-parent/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConstants.java
index f0714b7444cc..d74fcfc95ec7 100644
---
a/components/camel-spring-parent/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConstants.java
+++
b/components/camel-spring-parent/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConstants.java
@@ -54,7 +54,21 @@ public final class SpringWebserviceConstants {
+ " This header replaces the replyTo option.",
javaType = "java.net.URI")
public static final String SPRING_WS_ADDRESSING_PRODUCER_REPLY_TO =
"CamelSpringWebserviceAddressingReplyTo";
+ /**
+ * Not used: the consumer does not read this header. Spring Web Services
chooses the WS-Addressing Action of the
+ * response when it maps the request, before the route runs. Use the
outputAction option instead.
+ *
+ * @deprecated no code reads this header; the consumer only removes it
from the SOAP headers of the response.
+ */
+ @Deprecated
public static final String SPRING_WS_ADDRESSING_CONSUMER_OUTPUT_ACTION =
"CamelSpringWebserviceAddressingOutputAction";
+ /**
+ * Not used: the consumer does not read this header. Spring Web Services
chooses the WS-Addressing Action of the
+ * fault response when it maps the request, before the route runs. Use the
faultAction option instead.
+ *
+ * @deprecated no code reads this header; the consumer only removes it
from the SOAP headers of the response.
+ */
+ @Deprecated
public static final String SPRING_WS_ADDRESSING_CONSUMER_FAULT_ACTION =
"CamelSpringWebserviceAddressingFaultAction";
@Metadata(label = "consumer",
description = "The breadcrumb id of the request. The consumer
sets it to the value of the breadcrumbId transport"