Class SoapControllerDispatcher

Assembly: redb.Route.Controllers.dll

Dispatches SOAP requests to controller methods by operation name, making SOAP a first-class controller
transport alongside HTTP, SignalR and gRPC. The operation is read from redbSoap.operation (the local
name of the <soap:Body> root element, which the SOAP consumer sets); it maps to a method whose
name — or — matches. The request body is XML and binds to the method's
[FromBody] (or single complex) parameter via ; the return value is
XML-serialized onto , which the SOAP consumer wraps in a response envelope.
A missing operation, an unknown operation, or an invocation exception throws — the SOAP consumer turns that
into a soap:Fault.

Use it behind a consumer in the default Payload data format: the dispatcher owns per-operation typing
and the inner <soap:Body> XML, which is what Payload delivers. It is not meant to be
combined with Message (which hands over the whole envelope and sends the reply without wrapping) or
Pojo (which fixes one request type on the endpoint and so collapses multi-operation dispatch).

public sealed class SoapControllerDispatcher : IProcessor

Inheritance

Object→SoapControllerDispatcher

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors