Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
36.3. Sort Messages by Operation Name
The operationName header 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
When the WS endpoint parses an incoming operation invocation in PAYLOAD mode, it automatically sets the
operationName
header to the name of the invoked operation. You can then use this header to sort messages by operation name.
Sorting by operation name 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
For example, the
customer-ws-camel-cxf-payload
demonstration defines the following route, which uses the content-based router pattern to sort incoming messages, based on the operation name. The when
predicates check the value of the operationName
header using simple language expressions, sorting messages into invocations on the updateCustomer
operation, the lookupCustomer
operation, or the getCustomerStatus
operation.