WCF learning-Endpoint)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.