Another system accesses another system, that is, it needs to use distributed communication ,,
1. WebService. netfromwork3.5 exists
2. webapi
3. wcf scop communication protocol
The above three methods can be implemented.
This article mainly describes three methods for responding to a WCF request.
1. request Response; client requests, the server responds to the client after processing 2. datagram: a client request. The server does not need to process the request and immediately responds to the client. In operationcontract (), add an isoneway = true. 3. duplex Communication: client requests. The server does not need to handle the requests and immediately responds to the client. At the same time, when the server completes processing, the server returns the processing result (a message of a datagram) enable the session mode and define the callback contract (the callback contract is also the datagram method) [servicecontract (
Sessionmode = sessionmode. Required, c
Allbackcontract = typeof (iresult)] Okay. Let's not talk about the previous article. More detailed than this.
Simple introduction to WCF