120 likes | 233 Views
Paul Johansen – October Mankato .NET Users Group. Why WCF ROCKS MY WORLD. Agenda. WCF Essentials Bunch o’ demos Coding from scratch Why the Visual Studio tools suck Additional Details Real life WCF architecture. WCF – Web Services on Steroids?. Barry Bonds Great, total roid monkey.
E N D
Paul Johansen – October Mankato .NET Users Group Why WCF ROCKS MY WORLD
Agenda • WCF Essentials • Bunch o’ demos • Coding from scratch • Why the Visual Studio tools suck • Additional Details • Real life WCF architecture
WCF – Web Services on Steroids? Barry Bonds Great, total roid monkey Ken Griffey Jr. Good, but not on roids ~10 % 20 Seasons 611 HR .288 Career Average 22 Seasons 762 HR .298 Career Average ~25 % ~ 3 %
WCF – A better baseball comparison If Barry Bonds is WCF… Then Paul Johansen is Web Services 22 Seasons 762 HR .298 Career Average .7 Seasons 0 HR (HBP three times) .054 Career Average
WCF – What is it really? • Consolidated programming model for distributed computing • ASMX Web Services • WSE 2.0, 3.0 • .NET Remoting • Enterprise Services • Completely pimped-out Web services • WS* Standards • Insane Flexibility • Promoter of world peace and cure for world hunger
WCF Main Components • Contracts – What do I need to send back and forth? • Endpoints – Where do I send it? • Hosts – Where does the service live? • Clients – The app talking to the service • Proxies – How the app can communicate with the service • Services – The actual service itself
Demo • Basic Service from scratch Host Client Service Proxy Contract
Contracts • Operation Contracts • Data Contracts • Strict and Non-Strict versioning
Endpoint Bindings • Named Pipes – Same Server • TCP – Inside the firewall • HTTP(s) (basic and WS) – over the firewall • MSMQ - Reliable
Hosts • IIS 6 Hosting • http only bindings • IIS 7 / WAS • All bindings • Self hosting • All bindings • BizTalk WCF Adapters • All Bindings
Hosts – What to choose • Windows Server 2003 • IIS 6.0 for HTTP • Windows Services for other protocols • Windows Server 2008 • IIS 7.0 / WAS
Before we say goodbye… Any questions?