windows communication foundation (part2) jaliya udagedara
TRANSCRIPT
Windows Communication Foundation
(WCF) - Part 2
Jaliya UdagedaraMCPD
http://www.jaliyaudagedara.blogspot.com/
What are we going to discuss today?• The Basic Composition of a WCF Application
• The ABC's of WCF
The Basic Composition of a WCF Application
• WCF Service assembly
• WCF service host
• WCF client
The ABC's of WCF
• Address
• Binding
• Contract
Address
WhereBinding
HowContract
What
Endpoint
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
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
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
DEMO
Thank You!