Windows Communication Foundation
New References
http://msdn.microsoft.com/en-us/library/dd456779.aspx
1. A service is a construct that exposes one or more endpoints, each of which exposes one or more service operations.
2. The endpoint of a service specifies an address where the service can be found, a binding that contains the information that a client must communicate with the service, and a contract that defines the functionality provided by the service to its clients
3. The SIX tasks need to create a WCF application
3.1. Define a WCF Service Contract
3.2. Implement a WCF Service Contract
3.3. Host and Run a Basic WCF Service
3.4. Create a WCF Client
3.5. Configure a Basic WCF Client
3.6. Use a WCF Client
1. Define a WCF Service Contract
1. The first task is to define a contract.
2. The contract specifies what operations the service supports
3. An operation can be thought of as a Web service method
4. Contracts are created by defining a C++, C#, or Visual Basic (VB) interface. Each method in the interface corresponds to a specific service operation. Each interface must have the ServiceContractAttribute applied to it and each operation must have the OperationContractAttribute applied to it. If a method within an interface that has the ServiceContractAttribute does not have the OperationContractAttribute, that method is not exposed.
2. Implement WCF Service Contract
1. Implement the created contract.
3. Host and Run the WCF Service
1. Create host and run the service.
3. Host and Run the WCF Service
Create the Proxy and Configuration file using ServiceModel MetaData Utility Tool
References
No comments:
Post a Comment