What is an "endpoint" in WCF?
-
I was under the impression that an endpoint was defined in a config file as the list of possible clients but that makes no sense (in the sense that I assumed it said what computers could connet to the service) now I'm gathering that it's more of a definition, so would someone please explain what an end point is to me? I understand the concept of definining the contract interface and then implementing the contract but I get lost somewhere between there and actually having something useable. What is an address in this context? the host address? A binding is the communications method/protocol to use correct? the contract is the "object being shared" essentially (yes i know that's so technically incorrect but work with me here)
-
Answer:
An endpoint is what a service exposes, and in WCF terms, is made up of three things: Address Binding Contract Address is the URL by which the endpoint can be reached. Binding dictates transformations that are applied as well as the shape (to some degree) of the messages sent to the implementation of the Contract at the Address. Contract dictates what operations are being exposed at the address. It's exactly what it says it is, it's a contract to indicate what calls are permissible. Most of the time, people remember it as A B C. Some things to note: The binding is typically going to be a combination of channels with behaviors applied; channels being elements on the channel stack which modify the message and perform actions before they get to the service implementation. While commonly represented by an interface in .NET, it is not a requirement that a Contract be represented in this manner. Some design-first advocates will define the schemas to the messages that are going to be sent for the request and the response first, which is what WCF transforms the .NET Contract interface into.
Firoso at Stack Overflow Visit the source
Other answers
I'm going to cite Juval Lowy's Programming WCF Services here: Every service is associated with an address that defines where the service is, a binding that defines how to communicate with the service, and a contract that defines what the service does. This triumvirate governing the service is easy to remember as the ABC of the service. WCF formalizes this relationship in the form of an endpoint. The endpoint is the fusion of the address, contract, and binding. Every endpoint must have all three elements, and the host exposes the endpoint.
draconis
See http://msdn.microsoft.com/en-us/magazine/cc163412.aspx A service endpoint specifies an address, a binding, and a contract to use for communication.
a'b'c'd'e'f'g'h'
Related Q & A:
- How to send image in WCF?Best solution by Stack Overflow
- How to connect to a WCF Service?Best solution by Stack Overflow
- How to generate SOAP message with WCF?Best solution by Stack Overflow
- How to call the WCF service from silverlight application?Best solution by Stack Overflow
- What day will brasil play against argentina. And what time on what channel? Will it be telemundo?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.