Home > WCF > Standard Endpoints in WCF 4.0

Standard Endpoints in WCF 4.0

As we know that when we work with WCF, we always define the endpoint at server side and client side, both of endpoint must be same for making the communication channel between them. As we know that there are at least three attributes for making endpoint, Address, Binding and Contract, and Contract is the way where you define your service operations for external world but in some cases I have seen in WCF 3.5 we have already Contracts such as IMetadataExchange which are not implemented in our service, but its implementation is handled by WCF and similarly when we used WebHttpEndpoint for REST, it must need to configure some specific behavior. Its means we need to way where we have already define their default values and which should be re-usable. As per the need WCF 4.0 has come with the concept of Standard Endpoints which give the support that don’t need to define each and every attribute of the endpoints, it has already configured some of its properties.  Standard endpoints can be used for infrastructure and application endpoints.

Infrastructure Endpoints

Infrastructure Endpoints means that some of endpoints properties have already been configured and we don’t have rights to configure them with alternative values such that IMetadataExchange, when we using the mexHttpBinding for getting the meta data, we don’t have any other alternative options for Contract, we must be used IMetadataExchange and it can’t be changed while we are able to define its binding and address properties. However we are not implementing IMetadataExchange and as I said at above its implementation is handled by WCF. We can identify the infrastructure endpoints by using the property IsSystemEndpoint.

Application Endpoints

Application Endpoints give support to build standard endpoints, its means we can define endpoints with default values, some of properties can be changed and some of static property cannot be changed. For making the application endpoint we have to drive the class from ServiceEndpoint.

In my next post I will show practical example.

Advertisements
Categories: WCF
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: