Getting started with
Windows Communication Foundation &
its Security
By,
Ratan Sharma
ratans@mindfiresolutions.com
Agenda
→ History of Web Services
→ Service Orientation
→ Introduction to WCF
→ WCF Architecture
→ End points
→ Demo
→ WCF ...
COM
Component object model
DCOM
Distributed COM
.Net Remoting
COM +
Mechanism for communicating between applications and c...
→ Web Service
BALANCE between push and pull.. (Common Data format & Common Protocol)
Choice: How do you want to get info?
How do you wan...
What is WCF ?
Windows Communication Foundation (WCF) is a technology
for developing applications based on service-oriented...
The four tenets of service orientation
Service compatibility is determined based on policyService compatibility is determi...
Why WCF ??
→ Multiple protocol support
→ Full duplex communication
→ Different hosting environment
→ Different serializer ...
WCF
.Net
Remotin
g
Enterpris
e
Services
Messagin
g
ASMX
WSE
Interop with
Other platforms
WS* Protocol
support
Message orie...
WCF Architecture
How to reach your service ?
Address : URI of the WCF service
- Transport Scheme
-Server location
- Port
- Path
Binding : D...
Instance Management
New Instance
New Instance
New Instance
Instance
Per-Call
Singleton
Per-Session
Request
Instance 1
Inst...
Demo
WCF
Security
Authorization
IntegrityConfidentiality
Authentication
Security Mode
5 possible security modes
→ None
→ Transport
→ Message
→ Both (only msmq support this)
→ TransportWithMessag...
Bindings supporting Transport, Message and mixed mode
Binding Transport Mode? Message Mode? Mixed Mode?
BasicHttpBinding Y...
Message over a Channel
Message
Message
Message
Message
$%$^$^
$%#$%
W$#@%#
$^$%^
$%^^
@$#%
$%^^
@$#%
WCF Client
WCF Servic...
Demo
Questions ?
References
→ Codeplex.com
→ CodeProject.com
Upcoming SlideShare
Loading in...5
×

Basics of WCF and its Security

1,082

Published on

This slide would help one learn the basics of WCF service, and how it evolved. How security can be implemented in WCF service.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,082
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
33
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Basics of WCF and its Security

  1. 1. Getting started with Windows Communication Foundation & its Security By, Ratan Sharma ratans@mindfiresolutions.com
  2. 2. Agenda → History of Web Services → Service Orientation → Introduction to WCF → WCF Architecture → End points → Demo → WCF Security → Security support for different bindings → Security modes → Demo
  3. 3. COM Component object model DCOM Distributed COM .Net Remoting COM + Mechanism for communicating between applications and components running on the Windows platform for same computer. Mechanism for communicating between applications and components running on other computers over a network. Integration with Microsoft Transaction Server so applications could group operations on components together into transactions. A client application could access a remote object hosted by a remote server application as if it were running locally, inside the client application Mechanism for communicating between applications and components running on the Windows platform for same computer. Inter Process Communication Technologies
  4. 4. → Web Service
  5. 5. BALANCE between push and pull.. (Common Data format & Common Protocol) Choice: How do you want to get info? How do you want to deliver it?
  6. 6. What is WCF ? Windows Communication Foundation (WCF) is a technology for developing applications based on service-oriented architecture (SOA).
  7. 7. The four tenets of service orientation Service compatibility is determined based on policyService compatibility is determined based on policy Services share schema and contract, not classServices share schema and contract, not class Services are AutonomousServices are Autonomous Boundaries are ExplicitBoundaries are Explicit
  8. 8. Why WCF ?? → Multiple protocol support → Full duplex communication → Different hosting environment → Different serializer option → Messages can be queued using persistence queuing. As a result, no delays occur, even under high traffic conditions.
  9. 9. WCF .Net Remotin g Enterpris e Services Messagin g ASMX WSE Interop with Other platforms WS* Protocol support Message oriented programming Extensibility location transparency Attribute based programming
  10. 10. WCF Architecture
  11. 11. How to reach your service ? Address : URI of the WCF service - Transport Scheme -Server location - Port - Path Binding : Defines how the WCF service handles the request - BasicHttpBinding, NettcpBinding etc Contract : Defines what public data and interfaces the WCF service provides to the client. - Service contract, Data Contract, Fault Contract, Message Contract End Point
  12. 12. Instance Management New Instance New Instance New Instance Instance Per-Call Singleton Per-Session Request Instance 1 Instance 2 Instance 3 Client Client 1 Client 2 Client 3 Request Request Client 1 Client 2 Client 3
  13. 13. Demo
  14. 14. WCF Security Authorization IntegrityConfidentiality Authentication
  15. 15. Security Mode 5 possible security modes → None → Transport → Message → Both (only msmq support this) → TransportWithMessageCredential → TransportCredentialOnly
  16. 16. Bindings supporting Transport, Message and mixed mode Binding Transport Mode? Message Mode? Mixed Mode? BasicHttpBinding Yes Yes Yes WSHttpBinding Yes Yes Yes WSDualHttpBinding No Yes No NetTcpBinding Yes Yes Yes NetNamedPipeBinding Yes No No NetMsmqBinding Yes Yes No MsmqIntegrationBinding Yes No No wsFederationHttpBinding No Yes Yes
  17. 17. Message over a Channel Message Message Message Message $%$^$^ $%#$% W$#@%# $^$%^ $%^^ @$#% $%^^ @$#% WCF Client WCF Service EndPoint Message Message WCF Client WCF Client WCF Client WCF Client WCF Service EndPoint WCF Service EndPoint WCF Service EndPoint WCF Service EndPoint WCF Service EndPoint WCF Service EndPoint
  18. 18. Demo
  19. 19. Questions ?
  20. 20. References → Codeplex.com → CodeProject.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×