Tuesday, March 10, 2009

Keith Elder's WCF presentation @ VSdotNetUG.org

A test client for WCF inside the first few minutes!
WCF Test Client is a WCF Service Host ... nice to run with F5 instantly. (but we know that we want to create a real service host ourselves later, or just use IIS)

WCF Service Host is useful for testers... they script against it.

Great tool:
+ double-click on the GetData (vanilla out of the box), new tab with the "Invoke" button.
+ double-click on the GetDataUsingDataContract (vanilla out of the box), new tab with the "Invoke" button.
+ Invoke, and it shows results
+ Invoke, and you have two tabs: Formatted and XML so you can see the raw data (like if you had issues)
------

ASMX not really usable in WinForms. WCF is.
ASMX is not as performant either... nor is security as simple.

------

AJAX == JSON -> attribute
Twitter == REST api -> attribute

Request, no reply ex: MSMQ ... IsOneWay ex: OperationClient(IsOneWay) on the interface
Request, Reply (normal)
Duplex (Dual) ex: massively online gaming - XBox Live
(ex: http://www.evernote.com/)

------

MessageHeader if you need absolute control over ordering for interoperability.

------

Multiple Binding

... new cmd: Edit WCF Configuration, right-mouse on Web.Config or in Tools menu.
Empty Endpoints

Read Dan Rigsby's blog on this...
http://www.danrigsby.com/blog/

... Too too much to keep up the blogging on while watching.
You'll have to see Keith's presentation to understand how much.

The best parts
+ use of the WcfTestClient
+ WAS - Windows (process) Activation Service
+ timing shows that net.tcp beats http by about 33%, and net.msmq beats tcp by even more.

more later...

No comments:

Post a Comment