Message Exchange Patterns

442 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
442
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 11/27/09
  • 11/27/09
  • 11/27/09
  • 11/27/09
  • Message Exchange Patterns

    1. 1. Message Exchange Patters <ul><li>Request Reply Operations </li></ul><ul><li>One-way operations </li></ul>
    2. 2. Request Reply <ul><li>Client issues a request in the form of a message </li></ul><ul><li>Blocks it until it gets a response </li></ul><ul><li>There is a default timeout period </li></ul><ul><li>proxy will throw an exception on the client side if there are any communication or service-side exceptions. </li></ul><ul><li>All bindings support request-reply operations Except NetPeerTcpBinding and NetMsmqBinding </li></ul>
    3. 3. One Way <ul><li>Client does not care about the success or failure of the invocation </li></ul><ul><li>The one-way calls may not be dispatched all at once , they may be queued. </li></ul><ul><li>If the number of queued messages has exceeded the queue's capacity then the client will block. </li></ul><ul><li>All the WCF bindings support one-way operations. </li></ul>
    4. 4. Examples <ul><li>IsOneWay defaults to false, which means a request-reply operation (hence the WCF default). </li></ul><ul><li>However, setting IsOneWay to TRue configures the method as a one-way operation: </li></ul><ul><li>There is nothing special or different the client has to do when invoking a one-way operation. </li></ul>

    ×