What are the Prerequisites for Calling a WCF Service from a Client Application?

For a client application to successfully call a WCF service, the client application must have access to the following items:

  • A channel stack that enables the client application to pass messages to the service. The channel stack includes individual channels that define the characteristics of the binding, such as the security constraints and transactional requirements. WCF includes predefined bindings, such as BasicHttpBinding, that define the characteristics of the channels that are in the channel stack.

  • A client-side representation of the contract that enables the client to identify the operations that the WCF service provides.

  • A proxy object that hides the complexity of creating WCF messages to pass to the channel and provides a way of retrieving the contents of response messages.

  • An address for the WCF service that the client application can use for sending requests

Tags: