Title: 'NET 3'0 Windows Communication Foundation
1.NET 3.0(Windows Communication Foundation)
Presenters Gavin McKay Prashant Brall
2Agenda
- Service Oriented Architecture (SOA)
- Four Tenets of Service Orientation
- .NET 3.0
- Windows Communication Foundation (WCF)
- Demo
- WCF Case Study IRIS
- Summary and Questions
3Service Oriented Architecture (SOA)
- Policies, practices, and frameworks to design and
implement services - Services represent building blocks for an
organisation - Web services are a set of protocols by which
services can be provided - Interface tech neutral, standard, consumable
- Design quality services, meet business needs,
easy to use/adapt/manage
4Services ? Distributed Objects
Service Oriented Architecture
Tightly coupled distributed object solution
Your Partner
You
Programming Language
Programming Language
Database
Database
Agreements
Object Model
Object Model
Messages
Operating System
Operating System
Application Server
Application Server
5Tenet 1 Boundaries are Explicit
- Services interact through explicit
message-passing over well-defined boundaries - Crossing boundaries is potentially costly
- Reduce the surface area
6Tenet 2 Services Are Autonomous
- Services behave as independent entities
- Services are independently deployed, versioned,
and managed - Services should be built not to fail, using (for
example) transactions, redundancy and failover
techniques
7Tenet 3 Services share schema and contract, not
class
- Class implies implementation which adds
tight-coupling between services - ATM withdrawal example
- Schema bank card
- Contract your account
- Class ATM gets money from cash drawer
- Tightly-coupled service interfaces restrict
solution choices
8Tenet 4 Service compatibility Is based upon
policy
- Services providers and consumers have operational
requirements for interactions - Example Provider requires consumer to have a
valid account - Example Consumer requires provider to have
encrypted communication
9.NET Communication Technologies
My System
.NET Remoting
ASMX
System Messaging
WSE
COM
Enterprise Services
10.NET 3.0
.NET 3.0
Windows Communication Foundation
Windows Presentation Foundation
Windows CardSpace
Windows Workflow Foundation
.NET 2.0 CLR, .NET 2.0 Base Class
LibrariesASP.NET 2.0, ADO.NET 2.0, WinForms 2.0
11Windows Communication Foundation (WCF)
- Designed for building service-oriented apps
- Key word Communication (its not just about Web
Services!) - WCF is the interface for service communication
- Uses config file to specify service interface
- Available as assemblies for your projects
- System.Runtime.Serialization
- System.ServiceModel
12WCF Communication Technologies
WCF
- WCF takes care of communication implementation
- Configuration instead of development
My System
.NET Remoting
ASMX
System Messaging
WSE
COM
Enterprise Services
13Demo
- Core Concepts
- Great Quotations ServiceWCF and the WCF config
editor - SecurityAdd encryption to the Great Quotations
service via configuration - Picture ServiceDeliver streamed content via WCF
14Core Concepts
Service
Caller
C
B
A
Message
C
B
A
C
B
A
End point
Contract (What)
Binding (How)
Address (Where)
15Service Contracts
16WCF Configuration
Address
Binding
Contract
17Case Study AGPT
- Administer GP training throughout Australia
- 30 staff in Canberra, 22 offices nationwide
- IRIS .NET v1.1 Windows Form system
- SQL Server 2000 back-end
- n-tier architecture, built with application
interfaces in mind - Hosted solutions need access to IRIS business
components
18Perth office wants access to IRIS business
services
so Canberra hosts Web Services for internal
IRIS components
19Job Size
- 400 .NET v1.1 functions to expose
- 18 web services
- Two devs, two months
- 3rd-party providers able to integrate their
systems - Solid platform for building web-based version on
top of services
20System Design
Consumers connect to Services layer via Web
Services
WCF Service Layer
Entity translator converts from/to API
Application Layer
Challenge Data passed in different ways
Stateless API (demands uid/pwd)
21Summary
- SOA is a set of design principles for building
enterprise serviceshttp//msdn.microsoft.com/arch
itecture/soa/ - WCF provides configurable, consistent
communication serviceshttp//wcf.netfx3.com/ - Web Service Software Factoryhttp//msdn.microsoft
.com/practices/