What is CrazyEngico.com (CE)?

CrazyEngico (CE) is a one-stop solution for interview questions and answers, domain knowledge, e-learning, tutorials, articles and many more learning material.
e-learning - Intelligent e-learning tutorials and articles
Domain Knowledge Learn about various business domains/verticals such as Banking, Financial, Insurance, Healthcare and many more...
Interview Questions and Answers - Post your questions and answers. 1000+ database of ready questions and answers available to prepare for an interview.
Tutorials - 300+ video tutorials from beginner to expert level.
Articles - 300+ technical articles to understand concepts.
Forum - A technical forum to post your queries/responses.

Search Questions

Interview Questions/Answers

Interview Q & A >> WCF >> Can you explain how End points, Contract, Address and Bindings are done in WCF?

<< Previous Question Navigator Next >>

0        0
Can you explain how End points, Contract, Address and Bindings are done in WCF? (Views: 6076)


16        3

All communication with a Windows Communication Foundation (WCF) service occurs through the endpoints of the service. Endpoints provide clients access to the functionality offered by a WCF service.

Each endpoint consists of :

  • An address that indicates where the endpoint can be found. 

  • A binding that specifies how a client can communicate with the endpoint. 

  • A contract that identifies the operations available.

Submitted By: Shailesh | Created On: 12/2/2009 11:25:46 PM

2        0

Address:Address defines where the service resides.
Binding:Binding defines how to communicate with the service.
Contract:Contract defines what is done by the service.

Submitted By: Vikas Trivedi | Created On: 5/10/2012 5:03:48 AM

0        0

Contract (What)

Contract is an agreement between two or more parties. It defines the protocol of how a client should communicate with your service. Technically, it describes parameters and return values for a method.

Address (Where)

An Address indicates where we can find this service. Address is a URL which points to the location of the service.

Binding (How)

Bindings determine how this end can be accessed. It determines how communication is done. For instance, you expose your service, which can be accessed using SOAP over HTTP or BINARY over TCP. So for each of these communication mediums, two bindings will be created. The below figure shows the three main components of an end. You can see the stock ticker is the service class, which has an end hosted on www.soa.com with HTTP and TCP binding support and using the Stock Ticker interface type.

Submitted By: Kiran | Created On: 10/3/2013 1:08:15 AM

Post your Answer
Your answer will be first reviewed by our administrator before it appears on the site.

Your Answer:

Display Name:

By clicking on Submit button you agree to the Terms of Service agreement.

Copyright © 2018 CrazyEngico.com. All rights reserved.
CrazyEngico.com is not responsible for the content and CrazyEngico.com does not evaluate or guarantee the accuracy of any CrazyEngico.com content.
Please read our terms of service agreement before using this site.