
Discover how to create a simple WCF service, host it in IIS, and consume it through a client, using a service contract and operation contract.
Learn to define and implement service contracts. Pass various parameters, including strings and arrays, and see get message, get result, get max, and get sorted.
Learn to pass a student object as a parameter in WCF and Web API, using data contract and data member attributes for serialization, and identify top student by average marks.
Develop a WCF service that exposes an operation to get all countries from a SQL Server database, returning a list of country id and country name.
Host a WCF service using Visual Studio by configuring a service.svc, generating the WSDL, and exposing a SOAP-based endpoint ready for client consumption.
Create a client with an ASP.NET empty website, add a service reference to the WCF service, and bind a list of countries to a dropdown using id and name.
Explore service oriented architecture as a network of reusable, loosely coupled services with platform independent interfaces enabling distributed applications for tasks like credit card verification and purchase orders.
Explore the main approaches to service oriented architecture, including MSMQ, named pipes, dotnet remoting, and web services, and learn their messaging, interoperability, and client-server patterns.
Unify the programming model for distributed applications with Windows Communication Foundation (WCF) as the single solution. Define endpoints with address, binding, and contract, supporting http, tcp, named pipes, or msmq.
Explore how to build a wcf service library and host it in a web wcf service application, configure endpoints in web.config, and understand http basic binding and metadata basics.
Enable and publish Windows Communication Foundation service metadata, configure http get in the web.config, and build a client to consume a basicHttpBinding endpoint for a multiplication service.
Learn self-hosting a WCF service in a managed app, using console or forms, and manage the host lifecycle with imperative and declarative endpoints, bindings, and a seven-step setup.
Implement a self-hosted WCF service in a console application by configuring ServiceHost with a base address, endpoint, and BasicHttpBinding, enabling http get metadata.
Run self-hosted WCF service in a console host, launching Visual Studio as admin to avoid address access denied. Access endpoints and stop the service to show the page becomes unavailable.
Configure multiple endpoints with http and net tcp bindings in a self-hosted WCF service, displaying each endpoint's address, binding, and contract. Iterate endpoints and test them with telnet.
Configure named pipe endpoints declaratively in WCF using app.config, explore net.pipe, net.tcp, and http bindings, and understand the default basicHttpBinding when endpoints are absent.
Explore configuring a max endpoint for metadata exchange and enabling http get to expose http, tcp, and named pipe endpoints for client references and proxies.
Learn how to add a mex endpoint declaratively in app.config for WCF services, defining service behavior, endpoints, and metadata exchange alongside a tcp endpoint at localhost:1990.
Understand how svcutil.exe generates a proxy class and a web.config for a net.tcp WCF service, using the max endpoint, and produces a multiplication service client with a mul method.
Host a wcf service as a managed windows service, a ui-free, long-running process controlled by the operating system, with lifecycle management and bindings such as http, net.tcp, net.pipe, net.msmq.
Host a WCF service in a windows service by adding the service library, enabling metadata behavior, and configuring net.tcp endpoints and max metadata exchange in app.config, creating a service host.
Host a WCF service as a Windows service with service process installer, set automatic start, run with admin rights, verify the endpoint, then install, start, stop, and uninstall.
Understand how Windows Process Activation Service enables non-http bindings in IIS 7 for hosting WCF services, and learn to install IIS 7 and enable ASP.NET for localhost testing.
Learn to host a WCF service on IIS seven by creating a new website, registering ASP.NET, enabling Windows Activation for WCF, and wiring a client reference.
Learn to host a WCF service on Windows Process Activation Service (was) and IIS, and configure net.tcp endpoints in web.config for multi-transport hosting.
Understand how binding defines channel stack for WCF communication, including protocol channels, transport, and message encoding. Explore common and binding-specific properties and declarative versus imperative configuration in the configuration file.
Learn how to configure wcf with service model, behaviours, bindings, and services in app.config, declare endpoints, and override timeouts for net dot tcp binding and http binding.
Override binding class properties programmatically by configuring basicHttpBinding timeouts and other settings, then align client and host endpoints across web.config and service references for consistent WCF behavior.
Explore binding-specific properties like max buffer size, max buffer pool size, max received message size, maximum connections, and reliable messaging in wcf bindings such as net.tcp and http.
Explore how contracts define what a WCF service exposes, focusing on service contracts, data contracts, and fault contracts, and how changes to operations affect clients.
Learn to configure service contract and operation contract properties with attributes, rename contracts, and update the service reference to sync client proxies across http and net tcp endpoints.
Explore operation contract modifications in WCF and Web APIs from scratch. Learn how adding or removing parameters, changing return types, and updating service references affect clients.
Learn operation overloading in WCF by implementing two methods with the same name but different parameters, and resolve hosting errors by renaming or using the operation contract name.
Explore wcf service contract inheritance by using a base interface for integer multiplication and a derived interface for double multiplication, with endpoints on basic http binding and net tcp binding.
Summarizes how changes to service and operation contracts affect clients, including parameter and return-type changes, and the need to update client references; covers operation overloading, inheritance, and introduces data contract.
******Updated on Feb 2016********
WCF
It is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application. An endpoint can be a client of a service that requests data from a service endpoint. The messages can be as simple as a single character or word sent as XML, or as complex as a stream of binary data.
Web APIs
A server-side web API is a programmatic interface to a defined request-response message system, typically expressed in JSON or XML, which is exposed via the web—most commonly by means of an HTTP-based web server