Windows Vista Beta | WinVistaBeta.com - Message | Workflows and Web Services - Lab 6

July 25, 2008  
Subject: Workflows and Web Services - Lab 6
Group: microsoft.public.windows.developer.winfx.fundamentals
Date: 1/24/2007 8:40:00 AM
From: =?Utf-8?B?U2ViYXN0aWFuIENyZXdl?= [Email Address Protection]

Hi,

I'm trying to go through the RC labs for Windows Workflow, translating as
required from C# to VB as I go. No problems until Lab 6.

The solution basically has a project for a couple of web services, another
for the workflow and another for the host.

Everything compiles without error, but I'm not getting any results back in
my VB version. Meanwhile, the all C# version as provided by the Labs
installation works fine. So I put some break points into the workflow, and I
see some odd results. The handler for WebService_Invoking is hit and I can
step through, but nothing happens after that. Judging by the highlighting in
the workflow designer tab as I step through, the scope moves from the
InvokeWebService activity to the containing IfElse activity and then out to
the sequential workflow container. What it doesn't do is move on to the Code
activity immediately below the InvokeWebService activity. Nor, for that
matter, is the handler for WebService_Invoked ever hit.

So I suspect I am not getting a reply back from the web service and wonder
how best to troubleshoot that. I have tested the asmx page and it shows up
fine (using the ASP.NET Development Server) displaying the expected method as
a ‘supported operation’. However, since the parameter being passed to the
web service is a complex type, I can’t invoke the contract from that test
page. What would be the next step in establishing if the web service is
returning something? Also, how come the InvokeWebService just sits there if
it hasn’t received a reply? There must be a way of trapping this since in
the real world, web services may be unavailable.

Any guidance will be much appreciated.

With thanks and regards

Sebastian Crewe

Back