SlideShare a Scribd company logo
07 | Advanced WCF Topics 
Bruno Terkaly | Technical Evangelist 
Bret Stateham | Technical Evangelist
Module Overview 
• Creating Services & Clients in Code 
• Securing WCF Services 
• Windows Azure Service Bus
Creating Services & Clients in Code
Creating Services and Client Components 
Host Process (.exe, IIS, WAS) 
[ServiceContract] 
public class 
[OperationContract] 
public method 
[OperationContract] 
public method 
ServiceHost 
ChannelListener 
ChannelListener 
HTTP 
Metadata 
Client Process (.exe, …, ?) 
proxy class 
method ChannelFactory 
method 
TCP 
[DataContract] 
public class 
[DataMember] 
public property 
[DataMember] 
public property 
proxy class 
property 
property
DEMO 
Creating Services and Clients in Code
Securing Services
WCF Service Security 
• WCF Security basically boils down to 
– Transport security (SSL/HTTPS) 
– Message Security (Encrypting the payload) 
• There are a number of ways to accomplish the above using 
– Bindings 
– Transports 
– Authentication mechanisms 
– Certificates…..
Common Security Scenarios 
Scenario Security 
Mode 
Interop Server 
Auth 
Client 
Auth 
Integ. Confi. Transport Binding 
Internet Unsecured 
Client and Service 
None Yes No No None None HTTP BasicHttpBinding 
Intranet Unsecured 
Client and Service 
None WCF 
Only 
No No None None TCP NetTcpBinding 
Transport Security w/ 
Anonymous Client 
Transport Yes Yes No Yes Yes HTTPS WsHttpBinding 
Transport Security w/ 
Basic Auth 
Transport Yes Yes Yes Yes Yes HTTPS WsHttpBinding 
Transport Security w/ 
Windows Auth 
Transport WCF Yes Yes Yes Yes NET.TCP NetTcpBinding 
Message Security w/ 
Anonymous Client 
Message WCF Yes No Yes Yes HTTP WsHttpBinding 
Message Security w/ 
Windows Client 
Message WCF Yes Yes Yes Yes NET.TCP NetTcpBinding 
Common Security Scenarios on MSDN
Windows Azure Service Bus
Service Bus 
Connectivity 
Service Relay 
Protocol Tunnel Eventing 
Rich options for interconnecting apps across 
network boundaries 
Svc Management 
Naming, Discovery 
Monitoring 
Consistent management surface and service 
observation capabilities 
Integration Routing 
Coordination Transformation 
Content-based routing, document 
transformation, and process coordination. 
Messaging 
Queuing Pub/Sub 
Reliable Transfer 
Reliable, transaction-aware cloud messaging 
infrastructure for business apps. 
Notification 
Multiplatform 
Easily Scale out 
Push notifications to large number of mobile 
devices.
DEMO 
Windows Azure Service Bus
©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in 
the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because 
Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information 
provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related Content

What's hot

Windows communication foundation ii
Windows communication foundation iiWindows communication foundation ii
Windows communication foundation ii
Swamy Gowtham
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)ipower softwares
 
WCF And ASMX Web Services
WCF And ASMX Web ServicesWCF And ASMX Web Services
WCF And ASMX Web Services
Manny Siddiqui MCS, MBA, PMP
 
WCF
WCFWCF
Building RESTful Services with WCF 4.0
Building RESTful Services with WCF 4.0Building RESTful Services with WCF 4.0
Building RESTful Services with WCF 4.0
Saltmarch Media
 
Wcf architecture overview
Wcf architecture overviewWcf architecture overview
Wcf architecture overview
Arbind Tiwari
 
Session 1: The SOAP Story
Session 1: The SOAP StorySession 1: The SOAP Story
Session 1: The SOAP Story
ukdpe
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
Peter R. Egli
 
10 Tricks and Tips for WCF
10 Tricks and Tips for WCF10 Tricks and Tips for WCF
10 Tricks and Tips for WCF
Barry Dorrans
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
Abhi Arya
 
Service mesh
Service meshService mesh
Service mesh
Arnab Mitra
 
Monolithic to Microservices Architecture - STM 6
Monolithic to Microservices Architecture - STM 6Monolithic to Microservices Architecture - STM 6
Monolithic to Microservices Architecture - STM 6
Tricode (part of Dept)
 
Wcf hosting and endpoints
Wcf hosting and endpointsWcf hosting and endpoints
Wcf hosting and endpoints
dilipkumardubey
 
WCF Fundamentals
WCF Fundamentals WCF Fundamentals
WCF Fundamentals
Safaa Farouk
 
Microservices With Istio Service Mesh
Microservices With Istio Service MeshMicroservices With Istio Service Mesh
Microservices With Istio Service Mesh
Natanael Fonseca
 
Presentation for a Media Company
Presentation for a Media CompanyPresentation for a Media Company
Presentation for a Media Company
Mark Goetsch
 

What's hot (20)

Windows communication foundation ii
Windows communication foundation iiWindows communication foundation ii
Windows communication foundation ii
 
Wcf
WcfWcf
Wcf
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)
 
WCF And ASMX Web Services
WCF And ASMX Web ServicesWCF And ASMX Web Services
WCF And ASMX Web Services
 
WCF for begineers
WCF  for begineersWCF  for begineers
WCF for begineers
 
Windows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best PracticesWindows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best Practices
 
WCF
WCFWCF
WCF
 
Building RESTful Services with WCF 4.0
Building RESTful Services with WCF 4.0Building RESTful Services with WCF 4.0
Building RESTful Services with WCF 4.0
 
Wcf architecture overview
Wcf architecture overviewWcf architecture overview
Wcf architecture overview
 
Session 1: The SOAP Story
Session 1: The SOAP StorySession 1: The SOAP Story
Session 1: The SOAP Story
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
 
Wcf development
Wcf developmentWcf development
Wcf development
 
10 Tricks and Tips for WCF
10 Tricks and Tips for WCF10 Tricks and Tips for WCF
10 Tricks and Tips for WCF
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
Service mesh
Service meshService mesh
Service mesh
 
Monolithic to Microservices Architecture - STM 6
Monolithic to Microservices Architecture - STM 6Monolithic to Microservices Architecture - STM 6
Monolithic to Microservices Architecture - STM 6
 
Wcf hosting and endpoints
Wcf hosting and endpointsWcf hosting and endpoints
Wcf hosting and endpoints
 
WCF Fundamentals
WCF Fundamentals WCF Fundamentals
WCF Fundamentals
 
Microservices With Istio Service Mesh
Microservices With Istio Service MeshMicroservices With Istio Service Mesh
Microservices With Istio Service Mesh
 
Presentation for a Media Company
Presentation for a Media CompanyPresentation for a Media Company
Presentation for a Media Company
 

Similar to 07 advanced topics

Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Jorgen Thelin
 
1. WCF Services - Exam 70-487
1. WCF Services - Exam 70-4871. WCF Services - Exam 70-487
1. WCF Services - Exam 70-487Bat Programmer
 
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
 
Web Services and Devices Profile for Web Services (DPWS)
Web Services and Devices Profile for Web Services (DPWS)Web Services and Devices Profile for Web Services (DPWS)
Web Services and Devices Profile for Web Services (DPWS)Jorgen Thelin
 
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Subodh Pushpak
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
Deepika Chaudhary
 
WebRTC presentation
WebRTC presentationWebRTC presentation
WebRTC presentation
Veselin Pizurica
 
A presentation on WCF & REST
A presentation on WCF & RESTA presentation on WCF & REST
A presentation on WCF & RESTSanthu Rao
 
introduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationintroduction to Windows Comunication Foundation
introduction to Windows Comunication Foundation
redaxe12
 
Www architecture,cgi, client server security, protection
Www architecture,cgi, client server security, protectionWww architecture,cgi, client server security, protection
Www architecture,cgi, client server security, protectionAustina Francis
 
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questions
tongdang
 
Wcf Overview
Wcf OverviewWcf Overview
Wcf Overview
Amit Narula
 
Cisco’s Cloud Ready Infrastructure
Cisco’s Cloud Ready InfrastructureCisco’s Cloud Ready Infrastructure
Cisco’s Cloud Ready Infrastructure
Cisco Canada
 
Microsoft Cloud Computing - Windows Azure Platform
Microsoft Cloud Computing - Windows Azure PlatformMicrosoft Cloud Computing - Windows Azure Platform
Microsoft Cloud Computing - Windows Azure Platform
David Chou
 
Microsoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vsMicrosoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vsVideoguy
 
Build Apps Using Dynamic Languages
Build Apps Using Dynamic LanguagesBuild Apps Using Dynamic Languages
Build Apps Using Dynamic Languages
Wes Yanaga
 

Similar to 07 advanced topics (20)

Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
 
1. WCF Services - Exam 70-487
1. WCF Services - Exam 70-4871. WCF Services - Exam 70-487
1. WCF Services - Exam 70-487
 
Net Services
Net ServicesNet Services
Net Services
 
Introduction To Cloud Computing
Introduction To Cloud ComputingIntroduction To Cloud Computing
Introduction To Cloud Computing
 
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...
 
Day6
Day6Day6
Day6
 
Web Services and Devices Profile for Web Services (DPWS)
Web Services and Devices Profile for Web Services (DPWS)Web Services and Devices Profile for Web Services (DPWS)
Web Services and Devices Profile for Web Services (DPWS)
 
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
 
WebRTC presentation
WebRTC presentationWebRTC presentation
WebRTC presentation
 
A presentation on WCF & REST
A presentation on WCF & RESTA presentation on WCF & REST
A presentation on WCF & REST
 
introduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationintroduction to Windows Comunication Foundation
introduction to Windows Comunication Foundation
 
Www architecture,cgi, client server security, protection
Www architecture,cgi, client server security, protectionWww architecture,cgi, client server security, protection
Www architecture,cgi, client server security, protection
 
Migrating Apps To Azure
Migrating Apps To AzureMigrating Apps To Azure
Migrating Apps To Azure
 
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questions
 
Wcf Overview
Wcf OverviewWcf Overview
Wcf Overview
 
Cisco’s Cloud Ready Infrastructure
Cisco’s Cloud Ready InfrastructureCisco’s Cloud Ready Infrastructure
Cisco’s Cloud Ready Infrastructure
 
Microsoft Cloud Computing - Windows Azure Platform
Microsoft Cloud Computing - Windows Azure PlatformMicrosoft Cloud Computing - Windows Azure Platform
Microsoft Cloud Computing - Windows Azure Platform
 
Microsoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vsMicrosoft NetMeeting and Windows XP Video Conferencing vs
Microsoft NetMeeting and Windows XP Video Conferencing vs
 
Build Apps Using Dynamic Languages
Build Apps Using Dynamic LanguagesBuild Apps Using Dynamic Languages
Build Apps Using Dynamic Languages
 

More from Bat Programmer

04 data accesstechnologies
04 data accesstechnologies04 data accesstechnologies
04 data accesstechnologiesBat Programmer
 
02 hosting servicesinwindowsazure
02 hosting servicesinwindowsazure02 hosting servicesinwindowsazure
02 hosting servicesinwindowsazureBat Programmer
 
Guide to MCPD - Web Developer 4
Guide to MCPD - Web Developer 4Guide to MCPD - Web Developer 4
Guide to MCPD - Web Developer 4
Bat Programmer
 

More from Bat Programmer (6)

06 web api
06 web api06 web api
06 web api
 
05 entity framework
05 entity framework05 entity framework
05 entity framework
 
04 data accesstechnologies
04 data accesstechnologies04 data accesstechnologies
04 data accesstechnologies
 
03 data storage
03 data storage03 data storage
03 data storage
 
02 hosting servicesinwindowsazure
02 hosting servicesinwindowsazure02 hosting servicesinwindowsazure
02 hosting servicesinwindowsazure
 
Guide to MCPD - Web Developer 4
Guide to MCPD - Web Developer 4Guide to MCPD - Web Developer 4
Guide to MCPD - Web Developer 4
 

07 advanced topics

  • 1. 07 | Advanced WCF Topics Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist
  • 2. Module Overview • Creating Services & Clients in Code • Securing WCF Services • Windows Azure Service Bus
  • 3. Creating Services & Clients in Code
  • 4. Creating Services and Client Components Host Process (.exe, IIS, WAS) [ServiceContract] public class [OperationContract] public method [OperationContract] public method ServiceHost ChannelListener ChannelListener HTTP Metadata Client Process (.exe, …, ?) proxy class method ChannelFactory method TCP [DataContract] public class [DataMember] public property [DataMember] public property proxy class property property
  • 5. DEMO Creating Services and Clients in Code
  • 7. WCF Service Security • WCF Security basically boils down to – Transport security (SSL/HTTPS) – Message Security (Encrypting the payload) • There are a number of ways to accomplish the above using – Bindings – Transports – Authentication mechanisms – Certificates…..
  • 8. Common Security Scenarios Scenario Security Mode Interop Server Auth Client Auth Integ. Confi. Transport Binding Internet Unsecured Client and Service None Yes No No None None HTTP BasicHttpBinding Intranet Unsecured Client and Service None WCF Only No No None None TCP NetTcpBinding Transport Security w/ Anonymous Client Transport Yes Yes No Yes Yes HTTPS WsHttpBinding Transport Security w/ Basic Auth Transport Yes Yes Yes Yes Yes HTTPS WsHttpBinding Transport Security w/ Windows Auth Transport WCF Yes Yes Yes Yes NET.TCP NetTcpBinding Message Security w/ Anonymous Client Message WCF Yes No Yes Yes HTTP WsHttpBinding Message Security w/ Windows Client Message WCF Yes Yes Yes Yes NET.TCP NetTcpBinding Common Security Scenarios on MSDN
  • 10. Service Bus Connectivity Service Relay Protocol Tunnel Eventing Rich options for interconnecting apps across network boundaries Svc Management Naming, Discovery Monitoring Consistent management surface and service observation capabilities Integration Routing Coordination Transformation Content-based routing, document transformation, and process coordination. Messaging Queuing Pub/Sub Reliable Transfer Reliable, transaction-aware cloud messaging infrastructure for business apps. Notification Multiplatform Easily Scale out Push notifications to large number of mobile devices.
  • 11. DEMO Windows Azure Service Bus
  • 12.
  • 13. ©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Editor's Notes

  1. 1