What is ChannelFactory in WCF?

A Channel Factory enables you to create a communication channel to the service without a proxy. A Channel Factory that creates and manages the various types of channels which are used by a client to send a message to various configured service endpoints.

How do I use ChannelFactory?

To create and use the ChannelFactory class

  1. Build and run an Windows Communication Foundation (WCF) service.
  2. Use the ServiceModel Metadata Utility Tool (Svcutil.exe) to generate the contract (interface) for the client.
  3. In the client code, use the ChannelFactory class to create multiple endpoint listeners.

What is ServiceModel?

A service model is the way that a firm offers intangible value to customers. This is usually a short statement that describes how you deliver services. However, service models can also be expansive descriptions of every interaction with different sets of target customers.

What is proxy in WCF?

Proxy is an object in memory on the client-side that exposes the same Interface or API that the WCF service does. Your consuming code will make calls against that proxy and proxy will dispatch those calls as SOAP Messages to the WCF service.

What is Svcutil EXE tool?

Svcutil.exe can be used to download metadata from running services, and save the metadata to local files. To download metadata, you must specify the /t:metadata option. Otherwise, client code is generated. For HTTP and HTTPS URL schemes, Svcutil.exe attempts to retrieve metadata using WS-Metadata Exchange and DISCO.

What is WCF client?

A WCF client is a local object that represents a WCF service in a form that the client can use to communicate with the remote service. WCF client types implement the target service contract, so when you create one and configure it, you can then use the client object directly to invoke service operations.

What is Svcutil dotnet?

The Windows Communication Foundation (WCF) dotnet-svcutil tool is a . NET tool that retrieves metadata from a web service on a network location or from a WSDL file, and generates a WCF class containing client proxy methods that access the web service operations.