SlideShare a Scribd company logo
1 of 12
Agenda:
 Service Binding
 Hosting/Consuming WCF
Service
 Instance Management
 Exception Handling
BINDING
 How Client Will Communicate with a service. A Service
may have multiple bindings define the shape ,security
etc…
• basicHttpBinding:
This binding uses HTTP as the transport and text/XML as the default message
encoding . Security disabled by default . It is fairly weak in interoperability.
• wsHttpBinding:
Defines a secure , reliable , interoprable binding suitable for non-duplex
service contracts . It uses HTTP and HTTPS transport for communication . Reliable
sessions are disabled by default . It supports WS-* functionality and distributed
transactions with reliable and secure sessions using SOAP security.
• netTcpBinding
This binding provides secure and reliable binding environment for .Net to .Net
cross machine communication . By default it creates communication stack using WS-
Reliable Messaging Protocol for reliability , TCP for message delivery and windows
security for message and authentication at run-time . It uses TCP protocol and
provides support for security , transaction and reliability.
Types of Bindings
Types of Bindings
• netNamedPipeBinding:
This binding provides secure and reliable binding environment for non-
machine cross process communication . It uses NamedPipe protocol and provides full
support for SOAP security , transaction and reliability . NamedPipes for message
delivery and binary encoding.
• netPeerTcpBinding:
This binding provides secure binding for peer-to-peer environment and
network applications. It uses TCP protocol for communication. It provides full
support for SOAP security , transaction and reliability.
• netMsmqBinding:
Queuing is provided by using MSMQ as transport. It enables for disconnected
operations, failure isolation and load leveling.
Binding In Configuration
 Service
 EndPoint
 Establishing the connection between client and service.
<system.serviceModel>
<services name=“serviceName” behaviorConfiguration=“”>
……write here endpoint tags
<services> </system.serviceModel>
 Endpoints Provide Client access to the functionality by a WCF
Service. Each endpoint is a portal for communicating with the
world/service.
<endpoint address=“url/protocol” binding=“Client-communication
-type” Contract=“operations available/Service”
BehaviorConfiguration=“Service behaviorConfiguration”
BindingConfiguration=“Data-binding”/>
Binding In Configuration
 Behavior
 Binding
 Common behaviors affect all endpoints globally ,
service/endpoint/operation behaviors affects only as their related
aspects only.
<behaviors> <behaviors>
<serviceBehavior> <endpointBehavior>
<behavior name=“”> <behavior name=“” >
<webHttp/> </behavior> <webHttp/></behavior>
</serviceBehavior></behaviors> </endpointBehavior></behaviors>
Binding Can be Configured either through Program or
Configuration file.
<bindings>
<basicHttpBinding>
<binding name=“service/endpointname” textEncoding=“utf-8”
openTimeout=“” closeTimeout=“”/></basicHttpBinding>
</bindings>
 IIS(Internet Information Service):
If a service uses a Http as protocol .It does not requires Host code to activate the
service, it automatically activates service code.
Features : Process recycling , idle shutdown , health Monitoring , message based activation.
 Self-Hosting:
WCF service can be self hosted as console application , Win-Forms or WPF
application with graphical UI . Client and Service in the same Process
 WAS Hosting:
Enable WCF for non-http protocols . It supports Windows Vista/Server-2008.
 Windows Service Hosting:
The service will be hosted, when system starts . Process life-time of the service
can be controlled by Service Control Manager for windows service.
WCF Service Hosting &Consuming
 Instance Management refers to the way a service handles a request
from a client . It is set of techniques WCF uses to bind Client request to
Service Instance , governing which service instance handles which client
request.
 Per-Call-Service:
Service Instance will be created for each client request mode , It can
be disposed after response is sent back to the client.
Use:
[ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCalll)]
Instance Management
Instance Management
• Per-Session-Service:
Here Logical Session between client and service will be maintained .
when the client creates new proxy to particular service instance, a dedicated
service instance will provided to the client. It is independent of all other instance.
Use:
[serviceBehavior(InstanceContextMode=InstanceContextMode.PerSession)]
Instance Management
 Singleton:
All Clients are independently connected to the same single instance .
This singleton instance will be created when service is hosted and , it is disposed
when host shut down.
Use:
[serviceBehavior(InstanceContextMode=InstanceContextMode.Single)]
Exception Handling
 FaultContract:
Unhandled exception are handled in a better way by making use of
FaultContract . Suppose the service i consumed is not working in the client
application . I want to know the real cause of the problem . This helps us to easy
identity , What error has occurred .
Use: [FaultContract(typeof(ExceptionFaultContract/Instance))]
try{
}
catch(Exception ex)
{
throw new FaultException<ExceptionFaultContract>(Instace of Object);
}

More Related Content

What's hot

Introducing WCF Duplex services
Introducing WCF Duplex servicesIntroducing WCF Duplex services
Introducing WCF Duplex servicesDinusha Kumarasiri
 
Session 1 Shanon Richards-Exposing Data Using WCF
Session 1 Shanon Richards-Exposing Data Using WCFSession 1 Shanon Richards-Exposing Data Using WCF
Session 1 Shanon Richards-Exposing Data Using WCFCode Mastery
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core conceptsSindhu VL
 
Sql Server Service Broker In The Real World
Sql Server Service Broker In The Real WorldSql Server Service Broker In The Real World
Sql Server Service Broker In The Real WorldQuest Software
 
10 Tricks and Tips for WCF
10 Tricks and Tips for WCF10 Tricks and Tips for WCF
10 Tricks and Tips for WCFBarry Dorrans
 
Wcf architecture overview
Wcf architecture overviewWcf architecture overview
Wcf architecture overviewArbind Tiwari
 
Interoperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) OverviewInteroperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) OverviewJorgen Thelin
 
Windows Communication Foundation (WCF) Service
Windows Communication Foundation (WCF) ServiceWindows Communication Foundation (WCF) Service
Windows Communication Foundation (WCF) ServiceSj Lim
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its SecurityMindfire Solutions
 
NATS for Modern Messaging and Microservices
NATS for Modern Messaging and MicroservicesNATS for Modern Messaging and Microservices
NATS for Modern Messaging and MicroservicesApcera
 
Understanding SOAP and REST basics and differences
Understanding SOAP and REST basics and differencesUnderstanding SOAP and REST basics and differences
Understanding SOAP and REST basics and differencesBhavendra Chavan
 
Soa 8 soa technologies for web services
Soa 8 soa technologies for web servicesSoa 8 soa technologies for web services
Soa 8 soa technologies for web servicesVaibhav Khanna
 
Implementing Microservices with NATS
Implementing Microservices with NATSImplementing Microservices with NATS
Implementing Microservices with NATSApcera
 
Soa interview questions (autosaved)
Soa interview questions (autosaved)Soa interview questions (autosaved)
Soa interview questions (autosaved)xavier john
 

What's hot (20)

Introducing WCF Duplex services
Introducing WCF Duplex servicesIntroducing WCF Duplex services
Introducing WCF Duplex services
 
WCF And ASMX Web Services
WCF And ASMX Web ServicesWCF And ASMX Web Services
WCF And ASMX Web Services
 
WCF 35
WCF 35WCF 35
WCF 35
 
Session 1 Shanon Richards-Exposing Data Using WCF
Session 1 Shanon Richards-Exposing Data Using WCFSession 1 Shanon Richards-Exposing Data Using WCF
Session 1 Shanon Richards-Exposing Data Using WCF
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core concepts
 
Sql Server Service Broker In The Real World
Sql Server Service Broker In The Real WorldSql Server Service Broker In The Real World
Sql Server Service Broker In The Real World
 
10 Tricks and Tips for WCF
10 Tricks and Tips for WCF10 Tricks and Tips for WCF
10 Tricks and Tips for WCF
 
Wcf architecture overview
Wcf architecture overviewWcf architecture overview
Wcf architecture overview
 
Interoperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) OverviewInteroperability and Windows Communication Foundation (WCF) Overview
Interoperability and Windows Communication Foundation (WCF) Overview
 
Windows Communication Foundation (WCF) Service
Windows Communication Foundation (WCF) ServiceWindows Communication Foundation (WCF) Service
Windows Communication Foundation (WCF) Service
 
WCF
WCFWCF
WCF
 
WSO2 Gateway
WSO2 GatewayWSO2 Gateway
WSO2 Gateway
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its Security
 
NATS for Modern Messaging and Microservices
NATS for Modern Messaging and MicroservicesNATS for Modern Messaging and Microservices
NATS for Modern Messaging and Microservices
 
Windows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best PracticesWindows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best Practices
 
Understanding SOAP and REST basics and differences
Understanding SOAP and REST basics and differencesUnderstanding SOAP and REST basics and differences
Understanding SOAP and REST basics and differences
 
Soa 8 soa technologies for web services
Soa 8 soa technologies for web servicesSoa 8 soa technologies for web services
Soa 8 soa technologies for web services
 
WCF Fundamentals
WCF Fundamentals WCF Fundamentals
WCF Fundamentals
 
Implementing Microservices with NATS
Implementing Microservices with NATSImplementing Microservices with NATS
Implementing Microservices with NATS
 
Soa interview questions (autosaved)
Soa interview questions (autosaved)Soa interview questions (autosaved)
Soa interview questions (autosaved)
 

Viewers also liked

Meteor Day Athens (2014-11-07)
Meteor Day Athens (2014-11-07)Meteor Day Athens (2014-11-07)
Meteor Day Athens (2014-11-07)svub
 
イチャラブ2死体
イチャラブ2死体イチャラブ2死体
イチャラブ2死体serayesde
 
PORTFOLIO_MARIA_ANDREYUK
PORTFOLIO_MARIA_ANDREYUKPORTFOLIO_MARIA_ANDREYUK
PORTFOLIO_MARIA_ANDREYUKMaria Andreyuk
 
Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)
Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)
Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)svub
 
وكالات الأنباء
وكالات الأنباءوكالات الأنباء
وكالات الأنباءAhmadMonawar
 
Presentation 1
Presentation 1Presentation 1
Presentation 1Irfan Khan
 
Report on DTS-I technology
Report on DTS-I technologyReport on DTS-I technology
Report on DTS-I technologyGaurav Shukla
 
イチャラブ死体
イチャラブ死体イチャラブ死体
イチャラブ死体serayesde
 
High speed Machines and Special Purpose Machines
High speed Machines and Special Purpose MachinesHigh speed Machines and Special Purpose Machines
High speed Machines and Special Purpose MachinesGaurav Shukla
 
LangMOOC project _EMMA Summer School 2015, Ischia, Italy
LangMOOC project _EMMA Summer School 2015, Ischia, ItalyLangMOOC project _EMMA Summer School 2015, Ischia, Italy
LangMOOC project _EMMA Summer School 2015, Ischia, ItalyMaria Perifanou
 

Viewers also liked (20)

Meteor Day Athens (2014-11-07)
Meteor Day Athens (2014-11-07)Meteor Day Athens (2014-11-07)
Meteor Day Athens (2014-11-07)
 
イチャラブ2死体
イチャラブ2死体イチャラブ2死体
イチャラブ2死体
 
Resume(update)
Resume(update)Resume(update)
Resume(update)
 
PORTFOLIO_MARIA_ANDREYUK
PORTFOLIO_MARIA_ANDREYUKPORTFOLIO_MARIA_ANDREYUK
PORTFOLIO_MARIA_ANDREYUK
 
ANG PAG LALAKBAY NI MARCO POLO
ANG PAG LALAKBAY NI MARCO POLOANG PAG LALAKBAY NI MARCO POLO
ANG PAG LALAKBAY NI MARCO POLO
 
Unit 731 japan
Unit 731 japanUnit 731 japan
Unit 731 japan
 
Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)
Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)
Collections vs. Meteods - Meteor Meetup Athens (#1 2014-11-25)
 
National day
National dayNational day
National day
 
وكالات الأنباء
وكالات الأنباءوكالات الأنباء
وكالات الأنباء
 
Presentation 1
Presentation 1Presentation 1
Presentation 1
 
Report on DTS-I technology
Report on DTS-I technologyReport on DTS-I technology
Report on DTS-I technology
 
イチャラブ死体
イチャラブ死体イチャラブ死体
イチャラブ死体
 
Annealing
Annealing Annealing
Annealing
 
DTS-i engine
DTS-i engineDTS-i engine
DTS-i engine
 
Fishbowl
FishbowlFishbowl
Fishbowl
 
High speed Machines and Special Purpose Machines
High speed Machines and Special Purpose MachinesHigh speed Machines and Special Purpose Machines
High speed Machines and Special Purpose Machines
 
Java ug
Java ugJava ug
Java ug
 
LangMOOC project _EMMA Summer School 2015, Ischia, Italy
LangMOOC project _EMMA Summer School 2015, Ischia, ItalyLangMOOC project _EMMA Summer School 2015, Ischia, Italy
LangMOOC project _EMMA Summer School 2015, Ischia, Italy
 
Lets begin
Lets beginLets begin
Lets begin
 
Purnima Classic
Purnima ClassicPurnima Classic
Purnima Classic
 

Similar to Windows communication foundation ii

WCF tutorial
WCF tutorialWCF tutorial
WCF tutorialAbhi Arya
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)ipower softwares
 
Complete Architecture and Development Guide To Windows Communication Foundati...
Complete Architecture and Development Guide To Windows Communication Foundati...Complete Architecture and Development Guide To Windows Communication Foundati...
Complete Architecture and Development Guide To Windows Communication Foundati...Abdul Khan
 
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Subodh Pushpak
 
A presentation on WCF & REST
A presentation on WCF & RESTA presentation on WCF & REST
A presentation on WCF & RESTSanthu Rao
 
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questionstongdang
 
Web service, wcf, web api
Web service, wcf, web apiWeb service, wcf, web api
Web service, wcf, web apiAbdeliDhankot
 
1. WCF Services - Exam 70-487
1. WCF Services - Exam 70-4871. WCF Services - Exam 70-487
1. WCF Services - Exam 70-487Bat Programmer
 
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Jason Townsend, MBA
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaJignesh Aakoliya
 
Windows Communication Foundation
Windows Communication FoundationWindows Communication Foundation
Windows Communication FoundationMahmoud Tolba
 
Session 1: The SOAP Story
Session 1: The SOAP StorySession 1: The SOAP Story
Session 1: The SOAP Storyukdpe
 
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
Service Oriented Development With Windows Communication Foundation   Tulsa DnugService Oriented Development With Windows Communication Foundation   Tulsa Dnug
Service Oriented Development With Windows Communication Foundation Tulsa DnugJason Townsend, MBA
 

Similar to Windows communication foundation ii (20)

WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
WCF
WCFWCF
WCF
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)
 
Complete Architecture and Development Guide To Windows Communication Foundati...
Complete Architecture and Development Guide To Windows Communication Foundati...Complete Architecture and Development Guide To Windows Communication Foundati...
Complete Architecture and Development Guide To Windows Communication Foundati...
 
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35
 
A presentation on WCF & REST
A presentation on WCF & RESTA presentation on WCF & REST
A presentation on WCF & REST
 
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questions
 
Wcf faq
Wcf faqWcf faq
Wcf faq
 
Web service, wcf, web api
Web service, wcf, web apiWeb service, wcf, web api
Web service, wcf, web api
 
1. WCF Services - Exam 70-487
1. WCF Services - Exam 70-4871. WCF Services - Exam 70-487
1. WCF Services - Exam 70-487
 
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003
 
web programming
web programmingweb programming
web programming
 
Wcf
WcfWcf
Wcf
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
 
Wcf Overview
Wcf OverviewWcf Overview
Wcf Overview
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company india
 
Windows Communication Foundation
Windows Communication FoundationWindows Communication Foundation
Windows Communication Foundation
 
Windows Communication Foundation
Windows Communication FoundationWindows Communication Foundation
Windows Communication Foundation
 
Session 1: The SOAP Story
Session 1: The SOAP StorySession 1: The SOAP Story
Session 1: The SOAP Story
 
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
Service Oriented Development With Windows Communication Foundation   Tulsa DnugService Oriented Development With Windows Communication Foundation   Tulsa Dnug
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
 

Recently uploaded

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 

Recently uploaded (20)

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 

Windows communication foundation ii

  • 1.
  • 2. Agenda:  Service Binding  Hosting/Consuming WCF Service  Instance Management  Exception Handling
  • 3. BINDING  How Client Will Communicate with a service. A Service may have multiple bindings define the shape ,security etc…
  • 4. • basicHttpBinding: This binding uses HTTP as the transport and text/XML as the default message encoding . Security disabled by default . It is fairly weak in interoperability. • wsHttpBinding: Defines a secure , reliable , interoprable binding suitable for non-duplex service contracts . It uses HTTP and HTTPS transport for communication . Reliable sessions are disabled by default . It supports WS-* functionality and distributed transactions with reliable and secure sessions using SOAP security. • netTcpBinding This binding provides secure and reliable binding environment for .Net to .Net cross machine communication . By default it creates communication stack using WS- Reliable Messaging Protocol for reliability , TCP for message delivery and windows security for message and authentication at run-time . It uses TCP protocol and provides support for security , transaction and reliability. Types of Bindings
  • 5. Types of Bindings • netNamedPipeBinding: This binding provides secure and reliable binding environment for non- machine cross process communication . It uses NamedPipe protocol and provides full support for SOAP security , transaction and reliability . NamedPipes for message delivery and binary encoding. • netPeerTcpBinding: This binding provides secure binding for peer-to-peer environment and network applications. It uses TCP protocol for communication. It provides full support for SOAP security , transaction and reliability. • netMsmqBinding: Queuing is provided by using MSMQ as transport. It enables for disconnected operations, failure isolation and load leveling.
  • 6. Binding In Configuration  Service  EndPoint  Establishing the connection between client and service. <system.serviceModel> <services name=“serviceName” behaviorConfiguration=“”> ……write here endpoint tags <services> </system.serviceModel>  Endpoints Provide Client access to the functionality by a WCF Service. Each endpoint is a portal for communicating with the world/service. <endpoint address=“url/protocol” binding=“Client-communication -type” Contract=“operations available/Service” BehaviorConfiguration=“Service behaviorConfiguration” BindingConfiguration=“Data-binding”/>
  • 7. Binding In Configuration  Behavior  Binding  Common behaviors affect all endpoints globally , service/endpoint/operation behaviors affects only as their related aspects only. <behaviors> <behaviors> <serviceBehavior> <endpointBehavior> <behavior name=“”> <behavior name=“” > <webHttp/> </behavior> <webHttp/></behavior> </serviceBehavior></behaviors> </endpointBehavior></behaviors> Binding Can be Configured either through Program or Configuration file. <bindings> <basicHttpBinding> <binding name=“service/endpointname” textEncoding=“utf-8” openTimeout=“” closeTimeout=“”/></basicHttpBinding> </bindings>
  • 8.  IIS(Internet Information Service): If a service uses a Http as protocol .It does not requires Host code to activate the service, it automatically activates service code. Features : Process recycling , idle shutdown , health Monitoring , message based activation.  Self-Hosting: WCF service can be self hosted as console application , Win-Forms or WPF application with graphical UI . Client and Service in the same Process  WAS Hosting: Enable WCF for non-http protocols . It supports Windows Vista/Server-2008.  Windows Service Hosting: The service will be hosted, when system starts . Process life-time of the service can be controlled by Service Control Manager for windows service. WCF Service Hosting &Consuming
  • 9.  Instance Management refers to the way a service handles a request from a client . It is set of techniques WCF uses to bind Client request to Service Instance , governing which service instance handles which client request.  Per-Call-Service: Service Instance will be created for each client request mode , It can be disposed after response is sent back to the client. Use: [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCalll)] Instance Management
  • 10. Instance Management • Per-Session-Service: Here Logical Session between client and service will be maintained . when the client creates new proxy to particular service instance, a dedicated service instance will provided to the client. It is independent of all other instance. Use: [serviceBehavior(InstanceContextMode=InstanceContextMode.PerSession)]
  • 11. Instance Management  Singleton: All Clients are independently connected to the same single instance . This singleton instance will be created when service is hosted and , it is disposed when host shut down. Use: [serviceBehavior(InstanceContextMode=InstanceContextMode.Single)]
  • 12. Exception Handling  FaultContract: Unhandled exception are handled in a better way by making use of FaultContract . Suppose the service i consumed is not working in the client application . I want to know the real cause of the problem . This helps us to easy identity , What error has occurred . Use: [FaultContract(typeof(ExceptionFaultContract/Instance))] try{ } catch(Exception ex) { throw new FaultException<ExceptionFaultContract>(Instace of Object); }