Friday, April 9, 2010

WCF Endpoints[ABC]

Every communication with the windows communication foundation occurs through the endpoints of the service.
Each endpoint consists of :
A-Address indicates where the endpoint can be found.
B-Binding indicates how client can communicate with end point.
C-Contract indicates operation available.

Structure Of Endpoint:
Each endpoint consists of following
1 Address: Address identifies the endpoint and tells the consumer to location of the service. It is represnted in endpoint address class.

The endpoint address class contains:
URI-which is the address of service.
Identity-represents the security identity of the service .

Defining endpoint in configuration.


contract="IMetadataExchange" />

Binding: Binding tells how to communicate with endpoint in service.
This includes:
The transport protocol to use (for example, TCP or HTTP).

The encoding to use for the messages (for example, text or binary).

The necessary security requirements (for example, SSL or SOAP message security).

Contracts:This outlines what the functionalities endpoint exposes to client.

What operations can be called by a client.

The form of the message.

The type of input parameters or data required to call the operation.

What type of processing or response message the client can expect.

Endpoint Addresses:
Every endpoint has an address associated with it, which is used to locate and identify the endpoint. This address consists primarily of a Uniform Resource Identifier (URI), which specifies the location of the endpoint. The endpoint address is represented in the Windows Communication Foundation (WCF) programming model by the EndpointAddress class, which contains an optional Identity property that enables the authentication of the endpoint by other endpoints that exchange messages with it, and a set of optional Headers properties, which define any other SOAP headers required to reach the service. The optional headers provide additional and more detailed addressing information to identify or interact with the service endpoint. The address of an endpoint is represented on the wire as a WS-Addressing endpoint reference (EPR).

URI Structure of an Address
The address URI for most transports has four parts. For example, the four parts of the URI can be itemized as follows:

Scheme: http:


(optional) Port: 322

Path: /mathservice.svc/secureEndpoint


No comments:

Post a Comment