Home › .NET Framework (Legacy & Enterprise)
WCF = Address + Binding + Contract. Binding Transport Use basicHttpBinding HTTP, SOAP 1.1 interop with legacy SOAP clients wsHttpBinding HTTP, WS- security/transactions enterprise SOAP netTcpBinding TCP, binary fast .NET-to-.NET on intranets netNamedPipeBinding named pipes same machine webHttpBinding HTTP REST/JSON simple REST (Web API is better) Contracts [ServiceContract] + [OperationContract] on an interface. [DataContract] + [DataMember] on DTOs (versioning: add members with IsRequired = false). [FaultContract(typeof(MyFault))] for typed SOAP faults. Modern options WCF server is not part of modern .NET. For migration use CoreWCF (community, mostly compatible) or move to gRPC / REST. WCF clients are available on modern .NET via System.ServiceModel. packages.