SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere Àhnliche Inhalte

Mehr von 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
 

KĂŒrzlich hochgeladen

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
 
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...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
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
KreezheaRecto
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

KĂŒrzlich hochgeladen (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
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
 
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
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
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...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
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
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 

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

Hinweis der Redaktion

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