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 |