WCF with Interface Development

I’ll provide more info later, but wanted to get this entry up.
 
I’ve recently did a sample application for my local user group.
 
It’s a layered and tiered setup.  The "traditional" layers are there, but now you can tier this application thanks to WCF.
 
Also included is an alternate way to avoid creating proxy classes on the client.  I call this the "DotNet to DotNet" method.
Ultimately, this life saving blog entry made this possible:
 
The sample is complete.  You’ll have to create a simple Sql Server Database, and run a few .tsql files (3) to have a working example.
 
A IsOneWay method is also included (aka, using WCF with MSMQ).  And an error handling (IErrorHandler) example is provided as well, when a "IsOneWay" message fails.
(Naturally, you’ll need MSMQ 3.0 or 4.0 installed for this example to work).
 
Please look at the root directory README.txt files, it answers most questions about the setup, and where I downloaded Juval’s excellent ServiceEx project.
 
If it helps, please leave a comment.  Thanks.
 
I am currently leading the discussion about StockTrader (msdn.microsoft.com/stocktrader) for my local user group (www.trinug.org).
I am also attempting to integrate my sample application into Greg Leake’s (stock trader author) Configuration Framework.
If you haven’t seen the StockTrader videos on Channel9/Wiki, check them out.
Now load the example which you can download here. (A "right-click" and "save-as" works best).  

PS
If you need a good reference for getting started (aka, the nuts and bolts of getting WCF working on your development machine),
try this:
http://www.thoughtshapes.com/WCF/GettingStarted.htm

DOWNLOAD NOTE:

If you have not installed WF (WorkFlow) onto your system, you will need to make the following changes:

Open up (in notepad.exe) the following file:
\BusinessLogic\GranadaCoder.Applications.TrinugWCFDemoVersion1.BusinessLogic.csproj

Find the lines below and REMOVE them.

(Line 12)
    <ProjectTypeGuids>{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

(Line 14)
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets" />

Save the file.  Close notepad.exe.  Find and open the .sln file.  That should work.
I realized after the fact that I had a WF reference in there, and not everyone has WF installed.

Advertisements
This entry was posted in Software Development. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s