windows communication foundation (part2) jaliya udagedara

9
Windows Communication Foundation (WCF) - Part 2 Jaliya Udagedara MCPD http://www.jaliyaudagedara.blogspot.com/

Upload: jaliya-udagedara

Post on 10-May-2015

706 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Windows communication foundation (part2) jaliya udagedara

Windows Communication Foundation

(WCF) - Part 2

Jaliya UdagedaraMCPD

http://www.jaliyaudagedara.blogspot.com/

Page 2: Windows communication foundation (part2) jaliya udagedara

What are we going to discuss today?• The Basic Composition of a WCF Application

• The ABC's of WCF

Page 3: Windows communication foundation (part2) jaliya udagedara

The Basic Composition of a WCF Application

• WCF Service assembly

• WCF service host

• WCF client

Page 4: Windows communication foundation (part2) jaliya udagedara

The ABC's of WCF

• Address

• Binding

• Contract

Address

WhereBinding

HowContract

What

Endpoint

Page 5: Windows communication foundation (part2) jaliya udagedara

The ABC's of WCF : Address

• Where to find the service

http://ravana:3333/myservice.svc/basic

Scheme: http:

Machine: ravana

Port (optional): 3333

Path: /myservice.svc/basic

Page 6: Windows communication foundation (part2) jaliya udagedara

The ABC's of WCF : Binding

• Defines the Transport protocol, Encoding and

Security for communication.

• Variety binding types are available out of the box

under WCF programming model.

• basicHttpBinding

• wsHttpBinding

• netTCPBinding

Page 7: Windows communication foundation (part2) jaliya udagedara

The ABC's of WCF : Contract

• Describes what the service does.

• Service Contracts

• ServiceContract - Defines the Interface.

• OperationContract - Defines the methods inside

Interface.

• Data Contracts

• DataContract - Used to define the class

• DataMember - Used to define the properties.

• Fault Contracts

• Message Contracts

Page 8: Windows communication foundation (part2) jaliya udagedara

DEMO

Page 9: Windows communication foundation (part2) jaliya udagedara

Thank You!