Windows Communication Foundation WCF .


63 views
Uploaded on:
Description
References. Presenting WCF, David Chappell, www.davidchappell.com/IntroducingWCFv1.2.1.pdfUsing three graphs from this referenceProgramming Indigo, David Pallmann, Microsoft Press, 2005Pro WCF, Peiris and Mulder, Apress, 2007. What is WCF?. Joining of a few Microsoft Technologies:Web administrations (ASMX)Web administration expansions (WSE)WS-SecurityWS-ReliabilityWS-Addressing.Net RemotingMSMQ messagi
Transcripts
Slide 1

Windows Communication Foundation (WCF) Jim Fawcett CSE775 – Distributed Objects Spring 2007

Slide 2

References Introducing WCF, David Chappell, www.davidchappell.com/IntroducingWCFv1.2.1.pdf Using three graphs from this reference Programming Indigo, David Pallmann, Microsoft Press, 2005 Pro WCF, Peiris and Mulder, Apress, 2007

Slide 3

What is WCF? Combination of a few Microsoft Technologies: Web administrations (ASMX) Web benefit augmentations (WSE) WS-Security WS-Reliability WS-Addressing .Net Remoting MSMQ informing COM+ Transactions

Slide 4

Chappell, in the same place, pg 14

Slide 5

Channel Model WCF underpins three sorts of channel action: Asysnchronous one-way Request, sit tight for answer Full duplex two-way

Slide 6

Structure Service Contract Service contract – RPC Interface Data contract – Type serialization Message contract – Soap message Binding Transport – HTTP, TCP, MSMQ, … Channel sort – one-way, duplex, ask for answer Encoding – XML, double, MTOM (msg trans optim mech) WS-* conventions – WS-Security, … Address http://someURI net.tcp://someOtherURI net.msmq://stillAnotherURI

Slide 7

Chappell, in the same place, pg 25

Slide 8

Channel Interfaces open interface IOutputChannel : IChannel { void Send(Message msg); } open interface IInputChannel : IChannel { Message Receive(); } open interface IDuplexChannel : IOutputChannel, IInputChannel {} open interface IRequestChannel : IChannel { Message Request(Message msg); } open interface IReplyChannel : IChannel { IRequestContext ReceiveRequest(); } open interface IRequestContext : Idisposable { Message RequestMessage { get; } void Reply(Message msg); }

Slide 9

Service Contract <%@ ServiceHost Language="C#" Service="MyService" %> [ServiceContract] open interface IMyService { [OperationContract] string Hello( string name); } open class MyService : IMyService { open string Hello(string name) { return "Hi " + name; }

Slide 10

Hosts WCF Services can be facilitated in: Internet Information Services (IIS) Very like web administrations Windows administrations Exposing windows benefit in style of WS Console and Winform applications New style for attachment like usefulness

Slide 11

Monitoring Services Message Logging WCF Performance counters Calls, CallsOutsantding, CallsErrored, … SecurityCallsNotAuthenticated, … TxCommitted, TxAborted, … RMSessionsStarted, RMSessionsFaulted, … Windows Management Instrumentation (WMI), a COM innovation

Slide 12

Other Topics WCF Security Credentials and cases (confirm) Transport-level security Message-level security Federated security show Authorization Auditing

Slide 13

Reliable Messaging ReliableSession empowered Implemented at the SOAP level not TCP parcel Very like TCP usefulness Messages not sent are held in a Transfer Window reserve Will have issues with extensive messages MSMQ Binding Needs microsoft stages on both finishes Supports store and forward

Slide 14

Other Features WCF Supports exchanges ACID properties Atomicity composite operations regarded as a unit Consistency Operations succeed or the framework is come back to earlier state Isolation Each exchange is autonomous and disconnected from different exchanges Durability If an operation succeeds it gets to be distinctly solid, e.g., focused on a database or other persistant store

Slide 15

Conclusion Convergence of programming models Desktop Application Web Application Windows Services Flexible facilitating alternatives Flexible deliberations

Recommended
View more...