wcf overview

53
WCf OverView

Upload: mareo

Post on 24-Jan-2016

70 views

Category:

Documents


0 download

DESCRIPTION

WCf OverView. Wcf is part of SOA Service side story Clientside neednot have to WCF. Client side Story. Client side Story. Could be Client or Server side Could be Integrated with WCF. WCF and SOA. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: WCf OverView

WCf OverView

Page 2: WCf OverView

Wcf is part of SOAService side storyClientside neednot have to WCF

Client side Story

Client side Story

Could be Client or Server sideCould be Integrated with WCF

Page 3: WCf OverView

WCF and SOA

Page 4: WCf OverView
Page 5: WCf OverView

• Suppose you have a CRM System, Accounting System and Reporting System in place, you will think of creating a API layer for this Functionality.

• WCF is all about exposing the functionality over API layer (Service) defined by a contract.

• WCF is Buildup from Ground up level to be a first class SOA citizen.

Page 6: WCf OverView
Page 7: WCf OverView

Lets discuss that in SOA we have Little SOA and Big SOA

Page 8: WCf OverView

• Suppose we have a Agency Management System of a Insurance Company which is Busy in day to day activities, like providing certificates, issuing policies, keep track of customer for a particular customer on a particular Policy.

• There fore “Agency Management System ” that is small exe but in the backend it has big activities/functionality like Reporting System with a separate database, CRM System with a Separate Table etc.

Page 9: WCf OverView

Lets create a API layer for this Functionality, that’s is exposing the functionality overAPI layer defined by a contract. By hiding the crucial details.

Business Tier Components Cordinates the Functionality at Data Tier Level

All the details of access to table and all

Page 10: WCf OverView

Therefore we should have a Service that Isolates this Business Tier and Data Tier thatIs a single application system from another. And expose this a s unit over a Service Layer (which defines security, contract, policy of Communication) to Agency management System is Little SOA and to other applications of Business Partners etc. Over the net is Bigger SOA.

Page 11: WCf OverView
Page 12: WCf OverView

Scenarios/ Applications Where I can USE WCF

Page 13: WCf OverView
Page 14: WCf OverView

Here we have Message level Security

Page 15: WCf OverView
Page 16: WCf OverView
Page 17: WCf OverView
Page 18: WCf OverView

WCF- Interoperability and Integration

Page 19: WCf OverView

We are getting into the scenariowhere I have to look and think less At/on xml form in message more concentrate on features required

Page 20: WCf OverView

Client and Service

Page 21: WCf OverView

Client will choose one of the end point based on the Protocol to use

Host is Living for the Message to be receivedAnd the End Points are the entry Points

Explicit contract are Defined over the Service Contract

Component

Page 22: WCf OverView
Page 23: WCf OverView

Practicals

Page 24: WCf OverView

ClassLibrary

Page 25: WCf OverView
Page 26: WCf OverView
Page 27: WCf OverView
Page 28: WCf OverView

Host

Page 29: WCf OverView

Manually copy the meta data

Client

Page 30: WCf OverView
Page 31: WCf OverView
Page 32: WCf OverView
Page 33: WCf OverView

There is away to generate the Proxy (Meta Data Information) without hand Coding it, that’s via WSDL

Page 34: WCf OverView

Should be service descriptionLanguage.

For Http Protocol

Page 35: WCf OverView

When we say host.open(), it create/opens the channels for communication and the creates the Service Description , so at runtime information of the Protocols, what all End points are available . So it generates the WSDl document. And client use the same to create the Proxy.

The service Model Generates the Service Descriptionfile

Page 36: WCf OverView
Page 37: WCf OverView

You can mail this WSDL to Client and Ask client to use svcutil.exe tool,to generate the Proxy

Page 38: WCf OverView
Page 39: WCf OverView

Next

Page 40: WCf OverView
Page 41: WCf OverView
Page 42: WCf OverView
Page 43: WCf OverView
Page 44: WCf OverView
Page 45: WCf OverView
Page 46: WCf OverView
Page 47: WCf OverView

Keep this on therefore will have two endpoints

Page 48: WCf OverView
Page 49: WCf OverView
Page 50: WCf OverView
Page 51: WCf OverView
Page 52: WCf OverView
Page 53: WCf OverView

The end