Dinusha Kumarasiri
•
•
•
•

WCF Basics
Message Exchange Patterns
Duplex Message Exchange
Advantages of Duplex Messaging
• WCF Provide runtime environment for
Services
Message
Client

Service
Message
• Advantages over other alternatives
– Support protocols other than http
– Host in other than web server
– Transactions and reliable sessions
– Message formats other than SOAP
• Endpoints

Service
Client 1
End point 1

End point 2
Message

End point 1

Client 2
Message

End point 2
• ABC of WCF
• Address – Where ?
• Binding – How?
• Contract – What?
• Channel
• WCF runtime architecture
• Request-Reply
WCF Hello Service
• One-Way
WCF Hello Service
• Duplex
• Both client and server can exchange messages
• Use callback contract to call to client
• Use “wsDualHttpBinding” binding
WCF Marks Service
• Alternative for client polling
• Enhanced performance
• Integration with Silverlight
WCF Chat
Q&A
Thank You !

Introducing WCF Duplex services

Editor's Notes

  • #4 System.ServiceModel namespaceUsing message passingHistory – COM , DCOM, .NetRemorting, ASMX Web Services
  • #6 Clients consume the service using endpoints
  • #8 Bindings will govern the behavior of channel like security, transactions, protocols, encoding etc..There are 2 types of channels. Transport channels and protocol channels