- Create a WCF Program
- Understand the basic concepts of interfaces, interfaces, services, etc.
- WCF code example (interface declaration, attributed programming)
[servicecontract]//Service contract
public interface IService1
{
[OperationContract]
String Hello ();
}
public class Service1:iservice1
{
public string Hello ()
{
public string Hello ()
}
}
The basic relationship between the client and the service:
WCF Client
A service is a set of endpoints that provide the available functionality to the client. The endpoint (endpoint) is a resource on the network that can deliver the message . The client formats the message (serialization) in accordance with the contract between the servicesand sends the message to the endpoint to access the endpoint 's functionality. The service listens for delivery messages in a specific format at the address specified by the endpoint.
WCF Tour Two