SlideShare a Scribd company logo
Learn  WCF at ASIT
WHAT IS WCF?
 Integration of several Microsoft
Technologies:
 Web services (ASMX)
 Web service extensions (WSE)
 WS-Security
 WS-Reliability
 WS-Addressing
 .NET Remoting
 MSMQ messaging
 COM+ Transactions
WCF DESIGN PRINCIPLES
 Boundaries are explicit
 No attempt to hide communication
 Services are autonomous
 Deployed, managed, and versioned independently
 Services share contracts and schemas, not
types
 Contracts define behavior, schemas define data
 Compatibility is policy-based
 Policy supports separation of behavior from access
constraints
Learn  WCF at ASIT
CHANNEL MODEL
 WCF supports three types of channel
activity:
 Asynchronous one-way
 Request, wait for reply
 Full duplex two-way
STRUCTURE
 Service
 Contract
 Service contract – RPC Interface
 Data contract – Type serialization
 Message contract – Soap message
 Binding
 Transport – HTTP, TCP, MSMQ, …
 Channel type – one-way, duplex, request-reply
 Encoding – XML, binary, MTOM (msg trans optim mech)
 WS-* protocols – WS-Security, …
Learn  WCF at ASIT
CHANNEL INTERFACES
 public interface IOutputChannel : IChannel
{ void Send(Message msg); }
 public interface IInputChannel : IChannel
{ Message Receive(); }
 public interface IDuplexChannel :
IOutputChannel, IInputChannel {}
 public interface IRequestChannel : IChannel
{ Message Request(Message msg); }
 public interface IReplyChannel : IChannel
{ IRequestContext ReceiveRequest(); }
 public interface IRequestContext : Idisposable
{ Message RequestMessage { get; }
void Reply(Message msg); }
SERVICE CONTRACT
 <%@ ServiceHost Language=“C#”
Service=“MyService” %>
[ServiceContract]
public interface IMyService
{
[OperationContract]
string Hello( string name);
}
public class MyService : IMyService
{
public string Hello(string name)
{ return “Hello “ + name; }
}
HOSTS
 WCF Services can be hosted in:
 Internet Information Services (IIS)
 Very similar to web services
 Windows services
 Exposing windows service in style of WS
 Console and Winform applications
 New style for socket like functionality
OTHER TOPICS
 WCF Security
 Credentials and claims (evidence)
 Transport-level security
 Message-level security
 Federated security model
 Authorization
 Auditing
OTHER FEATURES
 WCF Supports transactions
 ACID properties
 Atomicity
 composite operations treated as a unit
 Consistency
 Operations succeed or the system is returned to
prior state
 Isolation
 Each transaction is independent and isolated from
other transactions
 Durability
 If an operation succeeds it becomes durable, e.g.,
committed to a database or other persistant store
CONCLUSION
 Convergence of programming models
 Desktop Application
 Web Application
 Windows Services
 Flexible hosting options
 Flexible abstractions
we provide online and classroom training for WCF
For More Details
www.asit.amcsquare.com
Wise Machines India Pvt Ltd
#360, Sri Sai Padma Arcade,
Varthur Main Road,
Ramagondanahalli,
Whitefiled ,Bangalore – 560066.
We also having Branches in Hyderabad & Chennai

More Related Content

Viewers also liked (8)

PPTX
Phisyics 1 revision notes
aleyna143
 
PDF
Va quick guide
AmberLArana
 
PPT
Aliran 2 fase
Ervan Hadi Wiryanta
 
PDF
NeoGenomics Company Overview 03/16/2015
NeoGenomics Laboratory | Cancer Diagnostics
 
PDF
BpSM 2015.03. - Markó Bálint: A szociálparazitizmus mindennapjai hangyáknál
Budapest Science Meetup
 
PDF
Upright Monuments Flyer - Sean
Sean Lovin
 
ODS
Presentazioni slideshare
Enrico Lobina
 
PDF
Farmacias Costa de Araujo Marzo-2015
Leonardo Araoz
 
Phisyics 1 revision notes
aleyna143
 
Va quick guide
AmberLArana
 
Aliran 2 fase
Ervan Hadi Wiryanta
 
NeoGenomics Company Overview 03/16/2015
NeoGenomics Laboratory | Cancer Diagnostics
 
BpSM 2015.03. - Markó Bálint: A szociálparazitizmus mindennapjai hangyáknál
Budapest Science Meetup
 
Upright Monuments Flyer - Sean
Sean Lovin
 
Presentazioni slideshare
Enrico Lobina
 
Farmacias Costa de Araujo Marzo-2015
Leonardo Araoz
 

Similar to Learn WCF at ASIT (20)

PPT
WFC_DotNetWindowsCommunicationFoundation.ppt
jeyap77755
 
PDF
WCF Interview Questions By Scholarhat PDF
Scholarhat
 
PPTX
Windows Communication Foundation (WCF)
Betclic Everest Group Tech Team
 
PPTX
Complete Architecture and Development Guide To Windows Communication Foundati...
Abdul Khan
 
PPTX
web programming
sakthibalabalamuruga
 
PPTX
WCjffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
OmkarTalkar1
 
PPS
WCF (Windows Communication Foundation_Unit_01)
Prashanth Shivakumar
 
PPT
WCF
Vishwa Mohan
 
PPT
Dot Net Training Wcf Dot Net35
Subodh Pushpak
 
PPTX
WCF (Windows Communication Foundation)
ipower softwares
 
PPT
Basics of WCF and its Security
Mindfire Solutions
 
PDF
Windows Communication Foundation (WCF)
Peter R. Egli
 
PPTX
A presentation on WCF & REST
Santhu Rao
 
PPTX
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio
 
PPT
Session 1 Shanon Richards-Exposing Data Using WCF
Code Mastery
 
PPT
DotNet_WindowsCommunicationFoundation.ppt
jeyap77755
 
PDF
Wcf development
Binu Bhasuran
 
PPTX
Wcf and its features
Gulshan Sam
 
DOC
WCF tutorial
Abhi Arya
 
WFC_DotNetWindowsCommunicationFoundation.ppt
jeyap77755
 
WCF Interview Questions By Scholarhat PDF
Scholarhat
 
Windows Communication Foundation (WCF)
Betclic Everest Group Tech Team
 
Complete Architecture and Development Guide To Windows Communication Foundati...
Abdul Khan
 
web programming
sakthibalabalamuruga
 
WCjffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
OmkarTalkar1
 
WCF (Windows Communication Foundation_Unit_01)
Prashanth Shivakumar
 
Dot Net Training Wcf Dot Net35
Subodh Pushpak
 
WCF (Windows Communication Foundation)
ipower softwares
 
Basics of WCF and its Security
Mindfire Solutions
 
Windows Communication Foundation (WCF)
Peter R. Egli
 
A presentation on WCF & REST
Santhu Rao
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio
 
Session 1 Shanon Richards-Exposing Data Using WCF
Code Mastery
 
DotNet_WindowsCommunicationFoundation.ppt
jeyap77755
 
Wcf development
Binu Bhasuran
 
Wcf and its features
Gulshan Sam
 
WCF tutorial
Abhi Arya
 
Ad

More from ASIT (20)

PPTX
Asit education student review
ASIT
 
PPTX
ASIT EDUCATION STUDENT REVIEWS
ASIT
 
PPTX
Asit Education
ASIT
 
PPTX
Asit Education Student Reviews
ASIT
 
PPTX
Asit education Student review
ASIT
 
PPTX
ASIT EDUCATION REVIEW
ASIT
 
PPTX
Asit Never Cheats Unemployes
ASIT
 
PPTX
Latest News on Amc Square Asit
ASIT
 
PPTX
Asit amc never cheats students
ASIT
 
PPTX
News on AMC Square ASIT
ASIT
 
PPTX
News on Asit Amc
ASIT
 
PPTX
Time Management
ASIT
 
PPTX
learn Ruby at ASIT
ASIT
 
PPTX
introduction to Mongodb
ASIT
 
PPTX
introduction to hadoop
ASIT
 
PPTX
ASIT REVIEWS
ASIT
 
PPTX
ASIT REVIEWS
ASIT
 
PPTX
Learn REST API at ASIT
ASIT
 
PPTX
Learn C LANGUAGE at ASIT
ASIT
 
PPTX
Learn Advanced JAVA at ASIT
ASIT
 
Asit education student review
ASIT
 
ASIT EDUCATION STUDENT REVIEWS
ASIT
 
Asit Education
ASIT
 
Asit Education Student Reviews
ASIT
 
Asit education Student review
ASIT
 
ASIT EDUCATION REVIEW
ASIT
 
Asit Never Cheats Unemployes
ASIT
 
Latest News on Amc Square Asit
ASIT
 
Asit amc never cheats students
ASIT
 
News on AMC Square ASIT
ASIT
 
News on Asit Amc
ASIT
 
Time Management
ASIT
 
learn Ruby at ASIT
ASIT
 
introduction to Mongodb
ASIT
 
introduction to hadoop
ASIT
 
ASIT REVIEWS
ASIT
 
ASIT REVIEWS
ASIT
 
Learn REST API at ASIT
ASIT
 
Learn C LANGUAGE at ASIT
ASIT
 
Learn Advanced JAVA at ASIT
ASIT
 
Ad

Recently uploaded (20)

PDF
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
PPTX
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPT
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PDF
Stepwise procedure (Manually Submitted & Un Attended) Medical Devices Cases
MUHAMMAD SOHAIL
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
YSPH VMOC Special Report - Measles Outbreak Southwest US 7-20-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
PPTX
FAMILY HEALTH NURSING CARE - UNIT 5 - CHN 1 - GNM 1ST YEAR.pptx
Priyanshu Anand
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
John Keats introduction and list of his important works
vatsalacpr
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
PPTX
10CLA Term 3 Week 4 Study Techniques.pptx
mansk2
 
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Stepwise procedure (Manually Submitted & Un Attended) Medical Devices Cases
MUHAMMAD SOHAIL
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 7-20-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
FAMILY HEALTH NURSING CARE - UNIT 5 - CHN 1 - GNM 1ST YEAR.pptx
Priyanshu Anand
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
John Keats introduction and list of his important works
vatsalacpr
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
10CLA Term 3 Week 4 Study Techniques.pptx
mansk2
 

Learn WCF at ASIT

  • 2. WHAT IS WCF?  Integration of several Microsoft Technologies:  Web services (ASMX)  Web service extensions (WSE)  WS-Security  WS-Reliability  WS-Addressing  .NET Remoting  MSMQ messaging  COM+ Transactions
  • 3. WCF DESIGN PRINCIPLES  Boundaries are explicit  No attempt to hide communication  Services are autonomous  Deployed, managed, and versioned independently  Services share contracts and schemas, not types  Contracts define behavior, schemas define data  Compatibility is policy-based  Policy supports separation of behavior from access constraints
  • 5. CHANNEL MODEL  WCF supports three types of channel activity:  Asynchronous one-way  Request, wait for reply  Full duplex two-way
  • 6. STRUCTURE  Service  Contract  Service contract – RPC Interface  Data contract – Type serialization  Message contract – Soap message  Binding  Transport – HTTP, TCP, MSMQ, …  Channel type – one-way, duplex, request-reply  Encoding – XML, binary, MTOM (msg trans optim mech)  WS-* protocols – WS-Security, …
  • 8. CHANNEL INTERFACES  public interface IOutputChannel : IChannel { void Send(Message msg); }  public interface IInputChannel : IChannel { Message Receive(); }  public interface IDuplexChannel : IOutputChannel, IInputChannel {}  public interface IRequestChannel : IChannel { Message Request(Message msg); }  public interface IReplyChannel : IChannel { IRequestContext ReceiveRequest(); }  public interface IRequestContext : Idisposable { Message RequestMessage { get; } void Reply(Message msg); }
  • 9. SERVICE CONTRACT  <%@ ServiceHost Language=“C#” Service=“MyService” %> [ServiceContract] public interface IMyService { [OperationContract] string Hello( string name); } public class MyService : IMyService { public string Hello(string name) { return “Hello “ + name; } }
  • 10. HOSTS  WCF Services can be hosted in:  Internet Information Services (IIS)  Very similar to web services  Windows services  Exposing windows service in style of WS  Console and Winform applications  New style for socket like functionality
  • 11. OTHER TOPICS  WCF Security  Credentials and claims (evidence)  Transport-level security  Message-level security  Federated security model  Authorization  Auditing
  • 12. OTHER FEATURES  WCF Supports transactions  ACID properties  Atomicity  composite operations treated as a unit  Consistency  Operations succeed or the system is returned to prior state  Isolation  Each transaction is independent and isolated from other transactions  Durability  If an operation succeeds it becomes durable, e.g., committed to a database or other persistant store
  • 13. CONCLUSION  Convergence of programming models  Desktop Application  Web Application  Windows Services  Flexible hosting options  Flexible abstractions
  • 14. we provide online and classroom training for WCF For More Details www.asit.amcsquare.com Wise Machines India Pvt Ltd #360, Sri Sai Padma Arcade, Varthur Main Road, Ramagondanahalli, Whitefiled ,Bangalore – 560066. We also having Branches in Hyderabad & Chennai