WCF from theory to Practice (4): Where is the road

Source: Internet
Author: User
Tags soap

The starting point of this article

By reading this article, you can learn the following:

What is address?

The composition of the address?

How do I specify address in a configuration file?

How do I set the address programmatically?

What are the special applications of address?

This article is suitable for readers

For WCF beginners, without any SOA and other distributed development experience

What is address?

The first thing a client needs to do to communicate with a server is to figure out who to send the data to. Where's the destination? The address is a URI that uniquely identifies a WCF end node (EndPoint), which indicates the destination of the message sent. In WCF data communication, it solves the problem of where the service is.

The composition of the address?

Address is represented in WCF by the System.ServiceModel.EndpointAddress object, which is structured as follows:

Part Role
Uri Indicates the address of the endpoint, is required
Identity Can ensure the uniqueness of the address, when the URI is consistent, you can use identity to distinguish between endpoint, optional
Headers Provides additional information for the address for the SOAP message Filter, which is then added to the header of the SOAP messages

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.