Path: redb-route/redb.Route.Soap/SoapHeaders.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Soap/SoapHeaders.cs ---- namespace redb.Route.Soap; /// SOAP protocol version. public enum SoapVersion { /// SOAP 1.1: text/xml + a separate SOAPAction HTTP header. Soap11, /// SOAP 1.2: application/soap+xml with the action as a Content-Type parameter. Soap12 } /// How the route sees the SOAP message (Apache Camel camel-cxf dataFormat parity). public enum SoapDataFormat { /// The XML of the <soap:Body> content. Default; works with any service, no codegen. Payload, /// The whole SOAP envelope (transparent proxy). Message, /// Typed request/response objects via (DTOs may be dotnet-svcutil-generated). Pojo } /// /// Well-known exchange header keys for the SOAP component. Metadata with no standard wire name is /// redbSoap.-prefixed and stripped on send (), mirroring /// RmqHeaders/HttpHeaders. Envelope <soap:Header> elements map under /// — a second header plane distinct from the transport HTTP headers. /// public static class SoapHeaders { /// Prefix for redb-specific SOAP metadata headers. public const string Prefix = "redbSoap."; /// SOAPAction of the request/operation. public const string Action = "redbSoap.action"; /// Operation name. public const string Operation = "redbSoap.operation"; /// Target namespace. public const string Namespace = "redbSoap.namespace"; /// Fault code (SOAP 1.1 faultcode / 1.2 Code). public const string FaultCode = "redbSoap.faultCode"; /// Fault string (SOAP 1.1 faultstring / 1.2 Reason). /// /// On a consumer reply this header is also the instruction: set it, return normally, and the /// consumer answers with a soap:Fault carrying it, while the exchange stays successful — /// a fault the service is designed to give ("no such order") is an answer, not a failure. Use /// to name the code; without it the fault is the sender's, because a /// refusal about the content of the request is what SOAP calls Sender / Client. /// public const string FaultString = "redbSoap.faultString"; /// /// Set by the producer on a reply that is a fault (bool), so a route with /// throwOnFault=false can branch without catching. /// public const string IsFault = "redbSoap.isFault"; /// WS-Security UsernameToken user (surfaced on the consumer). public const string Username = "redbSoap.username"; /// WS-Security UsernameToken password (surfaced on the consumer). public const string Password = "redbSoap.password"; /// Whether an inbound WS-Security Body signature verified (bool). public const string SignatureValid = "redbSoap.signatureValid"; /// Caller's IP address, from the connection rather than from anything the caller sent. public const string RemoteAddress = "redbSoap.remoteAddress"; /// Caller's source port. public const string RemotePort = "redbSoap.remotePort"; /// Thumbprint of the TLS client certificate, when the handshake presented one (mTLS). public const string ClientCertThumbprint = "redbSoap.clientCertThumbprint"; /// Subject of the TLS client certificate. public const string ClientCertSubject = "redbSoap.clientCertSubject"; /// Expiry of the TLS client certificate, ISO-8601 UTC. public const string ClientCertNotAfter = "redbSoap.clientCertNotAfter"; /// Pojo mode: per-message override of the response CLR to deserialize into. public const string ResponseType = "redbSoap.responseType"; /// Prefix for individual <soap:Header> block elements (the envelope header plane). public const string HeaderPrefix = "redbSoap.header."; /// Whether the header key is redb-internal SOAP metadata (stripped before the envelope goes out). public static bool IsRedbHeader(string key) => key.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase); }