Why WCF ROCKS MY WORLD - Mankato .NET User Group

joeneetscompetitiveSecurity

Nov 3, 2013 (4 years and 1 month ago)

81 views

Paul Johansen


October Mankato .NET Users Group

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?

20 Seasons

611 HR

.288 Career Average

Barry Bonds

Great, total
roid

monkey

Ken Griffey Jr.

Good, but not on
roids

22 Seasons

762 HR

.298 Career Average

~25 %

~10 %

~ 3 %

WCF


A better baseball comparison

If Barry Bonds is WCF…

22 Seasons

762 HR

.298 Career Average

Then Paul Johansen is Web Services

.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

Client

Service

Host

Contract

Proxy

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?