I understand you can choose from a range of bindings, such as TCP, HTTP, HTTPS etc.
Am I correct in thinking it always uses SOAP to send data over this connection? I
No, not all. The WebHttpBinding is designed around REST protocols (HTTP GET, POX, JSON, etc.)
Technically, WCF is just a generic messaging protocol and can use any kind of encoding at all. The default and most common encodings are basicHttpBinding
and wsHttpBinding
, which are both based around SOAP/XML.
Then you have netTcpBinding
, which uses a binary message encoding, netMsmqBinding
, which uses the Microsoft Message Queue (MSMQ) protocol, and so on. There's really no hard-coded format for messages in WCF.
SOAP has its own specification for serializing exceptions (AKA faults), so the behaviour is always more or less the same when you use a SOAP-based binding; when you use other bindings, the faulting behaviour may be considerably different, in some cases actually swallowing exceptions unless you override the default behaviour (this is what happens in the webHttpBinding
).