An endpoint is a structure used to send or receive messages (or execute both operations at the same time. An endpoint includes a location (Address) that defines the destination to which a message can be sent, a communication mechanism specification (binding) that describes how a message should be sent ), the definition of a group of messages that can be sent or received (or executed simultaneously) at this location (service agreement, used to describe which messages can be sent ).
All communication with the WCF Service is performed through the endpoint of the service. With endpoints, the client can access the functions provided by the WCF Service.
The endpoint includes four attributes: the Address that indicates the location where the endpoint can be located; the Binding of the client to the end point ); identifies a Contract that can be operated; specifies the Behavior of the local implementation details of the endpoint (Behavior ). it can be understood that the endpoint is composed of ABC, which are Address, Binding, and Contract.
- Address: The address uniquely identifies the endpoint and informs the potential customer of the service of its location. In the WCF object model, the EndpointAddress class represents. OneEndpointAddressClass:
- A Uri attribute that represents a service address.
- An Identity attribute that represents the Service Security Identifier and optional message header set. The optional message header is used to provide other detailed addressing information to identify the endpoint or to interact with the endpoint.
- Binding: Binding specifies how to communicate with the endpoint. This includes:
- The Transport Protocol to use (for example, TCP or HTTP ).
- The encoding of the message (for example, text or binary ).
- Required security requirements (for example, SSL or SOAP message security ).
- Agreement: the agreement provides an overview of the function that an endpoint can publish to a client. Protocol designation:
- Operations that can be called by the client.
- Message form.
- The type of input parameters or data required to call an operation.
- The types of messages that the client can process or respond to as expected.
- Behavior: You can use the endpoint behavior to customize the local behavior of the service endpoint. The endpoint behavior is implemented by participating in the process of building the WCF Runtime Library. An example of the endpoint behavior is the ListenUri attribute, which can be used to specify a listening address different from the SOAP or Web Service Description Language (WSDL) address.