Welcome to MSDN Blogs Sign in | Join | Help

Graham Elliott

Microsoft Services Architect

Syndication

News

My Photos
This is a Flickr badge showing public photos from Graham Elliott tagged with badge. Make your own badge here.

.NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun)

Just before the Chrissy break, I ran through (at the Victoria .NET DevSIG) the first incarnation of my .NET 3.0 "End to End" demo that I have been wanting to build for some time.

While this ended up being a fair bit more then a simple Hello World example, it did turn out to be a pretty simple starting point for what will one day hopefully be my über demo for all things app-plat.

The Bits

I have posted the first (i.e. buggy, unstable, etc. etc. smile_regular ) version of the code here.

To get this to work, you will also need to:

  • Download and install the sample AdventureWorks database from here.
  • Change the connection string constant at the top of the ProductsDB class 

public class ProductsDB : IProductsDB 
{
    const string connectionString = "server=
    (local);database=AdventureWorks;Integrated
    Security=true"
;

    ...
}

  • Copy the sample Adventure works images to the Images directory under the WPFClient project.

The Overview

This is my original concept "design"

A brief explanation of the above:

  • 1. The user interacts with a WPF application (which also hosts a WindowsForms contrtol).
  • 2. The WPF application hosts a Windows Workflow Foundation workflow.
    • The Workflow calls 2 WCF services.
  • 3. The WPF application also calls a third WCF service directly using CardSpace security (GetProductDetails) and the WSFederationHttpBinding.
  • 4. The WCF services are hosted in a console application and wrap AdventureWorks legacy business and data tier components.
  • 5. Data is sourced from the AdventureWorks sample database.

This manifests into the AdventureWorks Solution that has 5 projects:

 

  • AWComponents: Contains the "legacy" Adventure works business / data tier components (originally from the AdventureWorks sample) that are converted into WCF Data Contracts (in ProductsObjects.cs) Service and Operation Contracts (in IProductsDB.cs).
  • SvcHost: Console application that hosts the WCF services.
  • TestClient: The original simple Windows Forms test client / harness.
  • WorkflowLibrary1: Windows Workflow Foundation project.
  • WPFClient: The "new" WPF Client.
    • You will notice the styling is very similar to the samples that come with the current version of Expression Blend - That's because I "lifted" some of the sexy XAML from these samples :-)

Enjoy !!! - Over the next few days I will pull out some of the more interesting integration bits / issues and blog about them.

 

Published Friday, January 05, 2007 11:00 AM by grahame

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Interesting Finds: January 4, 2006 @ Thursday, January 04, 2007 10:51 PM

Jason Haley

# Graham Elliott's über demo @ Thursday, January 04, 2007 11:05 PM

Graham Elliott is posting a series of articles on an über demo of .netfx 3.0 featuring WPF, WF, WCF and

frankarr - an aussie microsoft blogger

# Integrating WCF and WF @ Sunday, January 07, 2007 10:21 PM

One of the minor hurdles I came across when building out the first version of the über demo was how to

Graham Elliott

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Tuesday, January 16, 2007 5:31 PM

Getting a service unavailable on the link to the source code zip file.  Been happening for some time.

Shawn Cicoria

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Tuesday, January 23, 2007 9:00 PM

Hi Shawn... Should all be good now. Email me if you still can't access it.

grahame

# Fixing Really Bad Directions @ Tuesday, January 23, 2007 9:41 PM

After receiving several emails asking me where to find the AdventureWorks sample database and images

Graham Elliott

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Thursday, March 08, 2007 3:26 PM

I did manage to finally locate all the stuff except every image file was named something_small and the Microsoft samples had everything named something_large. Just another pain in the...

So I just deleted all images so that it would at least compile.

Next I ran the SVCHOST which dumped on me because of the certificate.

Too much difficulty tring to just get the thing to work to be of much use as an example.  Though I have to hand it to you, you said it is buggy and unstable. You weren't kidding.

Nice try though.

Thanks Larry

Larry Aultman

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Wednesday, April 04, 2007 1:47 PM

I get the same problem Larry did - an error due to X.509 certificate problems. Is this related to the fact that I've never ran any of the adventure works samples on this machine? How do I fix this?

Mark Faulcon

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Saturday, July 07, 2007 12:16 PM

Hi elliot, a question, where i can download de the images?

Cacho

# Refreshing the Uber Demo @ Monday, October 01, 2007 11:02 PM

I have had a few questions recently about whether I am planning to update the .NET 3.0 über demo to:

Graham Elliott

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Monday, October 22, 2007 9:52 AM

i would really like to run this example but get the X.509 issue.  can you give more insite as to where i can get the cert or how to create it.

Also, where can i just download the images.

Rob Park

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Friday, May 02, 2008 6:53 AM

Hi, I try to test your code but I haven't the photos and I can't find them.please could you tell me where they are?

Hermann Dausque

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Friday, August 22, 2008 4:41 PM

Hey Grahame,

   You forgot to include the images ..

Cheers

Ashish.

Ashish

# Complete Code @ Wednesday, February 25, 2009 3:27 PM

Do you have any updates to the code? Where can I download the latest code?

Venkat

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Saturday, April 18, 2009 4:50 PM

where can i download this sample

Hari

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Friday, November 13, 2009 8:59 AM

Please let us know the url from where we can download the sample code

Baskar

# re: .NET 3.0 End to End Example (WPF + WF + WCF + CardSpace = Jolly good fun) @ Wednesday, November 18, 2009 11:17 PM

It is a very nice example of wpf,wf and wcf technologies. It clear all douts about all three technologies.

vinay pal

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
Page view tracker