1. All messages in WCF are soap messages. Note that the messages in WCF are irrelevant to the transmission protocol and different from those in Web services. Therefore, the WCF Service can be transmitted between different protocols, not limited to HTTP messages.
2. each service in WCF has a unique address. The address contains two elements: Service Location and transmission protocol. The service location includes the machine name, site, communication port, pipeline, or queue, and an optional Uniform Resource ID for a specific path or Uri
3. WCF communication protocols: HTTP, TCP, peer network, IPC, and MSMQ. Services Using Named Pipes can only receive calls from the same machine, and each machine can only open one named pipe.
4. In WCF, all services are published as contracts, and the contracts have nothing to do with the platform. They are the standard way to describe service functions. WCF defines four types of contracts:
1. Service Contract: Describes the service operations that the client can perform.
2. Data contract: defines the data types that interact with services.
Iii. Error contract, which defines the error thrown by the Service
4. Message contract, which allows services to directly interact with messages (rarely used)
5. only interfaces or classes marked as servicecontract can be accessed by the WCF client. Only methods marked with the operationcontract attribute can be called. In addition, contractual operations cannot use referenced objects as parameters, only basic types of goods data contracts are allowed
6. the main advantage of IIS hosting is that the host process can be automatically started when the client submits the first request. You can also use IIS to manage the lifecycle of the host process. The disadvantage is that you can only use the HTTP protocol, if you are using IIS, the base address of the service must be the same as that of. the SVC file address must be consistent.
7. Self-managed
8. was hosting, Windows activation service, must provide one. the difference between SVC files and IIS hosting is that was is not limited to the use of HTTP. It supports all available WCF transfer protocols, ports, and queues.
9. the binding technology is introduced in WCF to combine these communication features. One binding encapsulates the transmission protocol, message encoding, communication mode, reliability, and security, A collection of related options such as transaction propagation and interoperability enables developers to use the same service logic based on different basic function modules
I. Basic binding supported by the basichttpbinding class. It can publish the WCF Service as an old asmx web service, so that the old client can collaborate with the new service.
Ii. TCP binding, provided by the nettcpbinding class, implements cross-machine communication in the intranet using the TCP protocol
Iii. Peer network binding, provided by the netpeertcpbinding class
Iv. IPC binding, provided by the netnamepipebinding class, uses the Named Pipe for communication between the same machine for transmission, which is the safest because it cannot receive calls from outside the machine, similar to TCP binding
5. Web Service binding and wshttpbinding are provided. Transmission over HTTP or HTTPS provides reliability, transaction, and security features for Internet-based communication.
6. ws bidirectional binding and wsdualhttpbinding are similar to WS binding, but they also support bidirectional communication from the service to the client.
7. MSMQ binding and provided by the netmsmgbinding class to support disconnected queue calls