top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is messaging in WCF?

0 votes
385 views
What is messaging in WCF?
posted May 18, 2017 by Madhavi Kumari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In WCF there are the following 3 types of Message Exchange Pattern:

1.Request/Response
2.One way
3. Duplex

1. Request/Response

This is the default Message Exchange Pattern. In this pattern the client sends a request to the server and it waits for the response until the server does not stop processing.

2. One way

This mode is used when we don't want to show any type of error to the client because when we use the Message Exchange Pattern then it doesn't give any message to the client. We can set these patterns using IsOneWay = true in the service, the exception will be thrown if IsOneWay = true is declared in the output parameter, reference parameter or return value.

3. Duplex

The duplex pattern implements both of the OneWay and Request/Response message patterns. The client and the service both initiate this pattern. This pattern is more complex than other patterns because the additional communication is added.

answer May 23, 2017 by Shweta Singh
...