SlideShare a Scribd company logo
1 of 17
WINDOWS COMMUNICATION
FOUNDATION(WCF)
PRESENTED BY:
KAMAL PATEL
GTU PG SCHOOL
BISAG,GANDHINAGAR
Contents
 Introduction
 Service Oriented Architecture
 WCF Architecture
 Steps to create WCF
 Advantages
 References
Introduction of WCF
 WCF is a set of .NET technologies (Web services ,.Net Remoting and
enterprises services) for building and running connected systems.
 WCF provides secure, reliable, and transacted messaging along with
interoperability
 WCF applications can be developed in any language which can
target the .NET runtime.
 System.ServiceModel is the assembly that contains core
functionality for WCF.
 A service is a Common Language Runtime (CLR) type that
encapsulates business functionality and exposes a set of methods
that can be accessed by remote clients.
When you should use it
 When your business logic has to interact with a variety of client
applications.
 When client apps, which are going to use your service, may be
written in Java or .Net.
 You are targeting a distributed computing architecture.
software need for create a WCF
 Visual studio 2005 or Above
 .Net Framework 3.0 or Above
 Microsoft Windows Software Development Kit (SDK)
 Visual studio extensions for WCF and WPF
SOA
WCF Architecture: Messaging Runtime
Transport
Encoder
Protocol(s)
Transport
Encoder
Protocol(s)
Client
Dispatcher
Service Contract
and
Behaviors
Binding
Address
Steps to Create WCF service
1. Services in WCF
The WCF applications expose the functionality through
services. A Service is a Common Language Runtime(CLR) type that
encapsulate business functionality and exposes a set of methods
that can be accessed by remote clients.
Cont…
2. Addresses
In WCF, every service is associated with a unique address. The
address provides two important elements: the location of the
service and the transport protocol or transport schema used to
communicate with the service. The location portion of the address
indicates the name of the target machine, site, or network; a
communication port, pipe, or queue; and an optional specific path
or URI.
TCP Addresses
Ex. net.tcp://localhost:8002/MyService.
HTTP Addresses
Ex. http://localhost:8001
Cont…
3. Contracts
In WCF, all services expose contracts. The contract is a
platform-neutral and standard way of describing what the service
does. WCF defines four types of contracts
 Service Contracts
 Data Contracts
 Fault Contracts
 Message Contracts
Cont…
4. Hosting
Every WCF service must be hosted in a Windows process
called the host process. A single host process can host multiple
services, and the same service type can be hosted in multiple host
processes. The host can be provided by IIS, by the Widows Activation
Service (WAS) on Windows Vista, or by the developer as part of the
application.
Cont…
5. Bindings
WCF groups together a set of communication aspects in
bindings. A binding is merely a consistent, canned set of choices
regarding the transport protocol, message encoding, communication
pattern, reliability, security, transaction propagation, and
interoperability.
• Basic Binding
• TCP Binding
• P2P Binding
• IPC Binding
• WS Binding
• Federated WS Binding
• Duplex WS Binding
Cont…
6. End Points
Every service is associated with an address that defines where the
service is, a binding that defines how to communicate with the
service, and a contract that defines what the service does. The
endpoint is the fusion of the address, contract, and binding (ABC)
Cont…
Address :- The address is obviously the location of the service,
such as ‘net.pipe://localhost/LocalTimeService’
Binding:- The binding specifies security options, encoding
options, and transport options.
Contract:- the contract is the actual interface that the service
implements.
Advantages of WCF
• Makes UI programming & distributed programming very easy.
• Reduce complexity by allowing us to focus on single
programming model rather than learn multiple programming
models.
• Helps us talk to various applications written in various languages
with ease which means more probable revenues as various
applications can start using your core services with ease.
• Helps us forget about interoperability between various
underlying web service technologies in the past, present and
future.
• With WCF, a single service can be defined and exposed over
multiple endpoints to support multiple protocols at the same
time.
References
 Xiong Guang-cai; Wang Zhi-feng; Zhang Xin-jia; Ji Guo-jun "Research on
supply chain management security under Windows Communication
Foundation", Service Systems and Service Management (ICSSSM), 2012 9th
International Conference on, On page(s): 845 - 849
 Guo Yunhua; YU Yonghua “A Message Service System Based on WCF Duplex
Communication” 2012 International Conference on Computer Science and
Service System, Page(s): 1480 - 1483
 Lojka, T.; Miskuf, M.; Zolotova, I. "Service oriented architecture for remote
machine control in ICS", Applied Machine Intelligence and Informatics (SAMI),
2014 IEEE 12th International Symposium on, On page(s): 327 - 330
Windows communication foundation

More Related Content

More from Kamal Patel

Mobile-Cloud Computing
Mobile-Cloud ComputingMobile-Cloud Computing
Mobile-Cloud ComputingKamal Patel
 
Interview skills
Interview skillsInterview skills
Interview skillsKamal Patel
 
On demand multicast
On demand multicastOn demand multicast
On demand multicastKamal Patel
 
Software Engineering Ontology and Software Testing
Software Engineering Ontology and Software Testing�Software Engineering Ontology and Software Testing�
Software Engineering Ontology and Software TestingKamal Patel
 
Qos aware routing protocol for wsn
Qos aware routing protocol for wsnQos aware routing protocol for wsn
Qos aware routing protocol for wsnKamal Patel
 

More from Kamal Patel (8)

J2ME MCQs
J2ME MCQsJ2ME MCQs
J2ME MCQs
 
Mobile-Cloud Computing
Mobile-Cloud ComputingMobile-Cloud Computing
Mobile-Cloud Computing
 
Interview skills
Interview skillsInterview skills
Interview skills
 
Ios forensics
Ios forensicsIos forensics
Ios forensics
 
On demand multicast
On demand multicastOn demand multicast
On demand multicast
 
Software Engineering Ontology and Software Testing
Software Engineering Ontology and Software Testing�Software Engineering Ontology and Software Testing�
Software Engineering Ontology and Software Testing
 
J2me Platform
J2me PlatformJ2me Platform
J2me Platform
 
Qos aware routing protocol for wsn
Qos aware routing protocol for wsnQos aware routing protocol for wsn
Qos aware routing protocol for wsn
 

Recently uploaded

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 

Recently uploaded (20)

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 

Windows communication foundation

  • 1. WINDOWS COMMUNICATION FOUNDATION(WCF) PRESENTED BY: KAMAL PATEL GTU PG SCHOOL BISAG,GANDHINAGAR
  • 2. Contents  Introduction  Service Oriented Architecture  WCF Architecture  Steps to create WCF  Advantages  References
  • 3. Introduction of WCF  WCF is a set of .NET technologies (Web services ,.Net Remoting and enterprises services) for building and running connected systems.  WCF provides secure, reliable, and transacted messaging along with interoperability  WCF applications can be developed in any language which can target the .NET runtime.  System.ServiceModel is the assembly that contains core functionality for WCF.  A service is a Common Language Runtime (CLR) type that encapsulates business functionality and exposes a set of methods that can be accessed by remote clients.
  • 4. When you should use it  When your business logic has to interact with a variety of client applications.  When client apps, which are going to use your service, may be written in Java or .Net.  You are targeting a distributed computing architecture.
  • 5. software need for create a WCF  Visual studio 2005 or Above  .Net Framework 3.0 or Above  Microsoft Windows Software Development Kit (SDK)  Visual studio extensions for WCF and WPF
  • 6. SOA
  • 7. WCF Architecture: Messaging Runtime Transport Encoder Protocol(s) Transport Encoder Protocol(s) Client Dispatcher Service Contract and Behaviors Binding Address
  • 8. Steps to Create WCF service 1. Services in WCF The WCF applications expose the functionality through services. A Service is a Common Language Runtime(CLR) type that encapsulate business functionality and exposes a set of methods that can be accessed by remote clients.
  • 9. Cont… 2. Addresses In WCF, every service is associated with a unique address. The address provides two important elements: the location of the service and the transport protocol or transport schema used to communicate with the service. The location portion of the address indicates the name of the target machine, site, or network; a communication port, pipe, or queue; and an optional specific path or URI. TCP Addresses Ex. net.tcp://localhost:8002/MyService. HTTP Addresses Ex. http://localhost:8001
  • 10. Cont… 3. Contracts In WCF, all services expose contracts. The contract is a platform-neutral and standard way of describing what the service does. WCF defines four types of contracts  Service Contracts  Data Contracts  Fault Contracts  Message Contracts
  • 11. Cont… 4. Hosting Every WCF service must be hosted in a Windows process called the host process. A single host process can host multiple services, and the same service type can be hosted in multiple host processes. The host can be provided by IIS, by the Widows Activation Service (WAS) on Windows Vista, or by the developer as part of the application.
  • 12. Cont… 5. Bindings WCF groups together a set of communication aspects in bindings. A binding is merely a consistent, canned set of choices regarding the transport protocol, message encoding, communication pattern, reliability, security, transaction propagation, and interoperability. • Basic Binding • TCP Binding • P2P Binding • IPC Binding • WS Binding • Federated WS Binding • Duplex WS Binding
  • 13. Cont… 6. End Points Every service is associated with an address that defines where the service is, a binding that defines how to communicate with the service, and a contract that defines what the service does. The endpoint is the fusion of the address, contract, and binding (ABC)
  • 14. Cont… Address :- The address is obviously the location of the service, such as ‘net.pipe://localhost/LocalTimeService’ Binding:- The binding specifies security options, encoding options, and transport options. Contract:- the contract is the actual interface that the service implements.
  • 15. Advantages of WCF • Makes UI programming & distributed programming very easy. • Reduce complexity by allowing us to focus on single programming model rather than learn multiple programming models. • Helps us talk to various applications written in various languages with ease which means more probable revenues as various applications can start using your core services with ease. • Helps us forget about interoperability between various underlying web service technologies in the past, present and future. • With WCF, a single service can be defined and exposed over multiple endpoints to support multiple protocols at the same time.
  • 16. References  Xiong Guang-cai; Wang Zhi-feng; Zhang Xin-jia; Ji Guo-jun "Research on supply chain management security under Windows Communication Foundation", Service Systems and Service Management (ICSSSM), 2012 9th International Conference on, On page(s): 845 - 849  Guo Yunhua; YU Yonghua “A Message Service System Based on WCF Duplex Communication” 2012 International Conference on Computer Science and Service System, Page(s): 1480 - 1483  Lojka, T.; Miskuf, M.; Zolotova, I. "Service oriented architecture for remote machine control in ICS", Applied Machine Intelligence and Informatics (SAMI), 2014 IEEE 12th International Symposium on, On page(s): 327 - 330

Editor's Notes

  1. © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.