Figure 1.
The intermediary or "middleman" intercepts requests from the consumer, reads the SOAP headers, and takes smart actions such as authentication, authorization, policy management, routing, logging, and so on.