views:

57

answers:

1

Suppose I had a WCF service that I have coded up, like Clemens Vasters's XML-RPC with WCF, and want to stick a workflow behind it on the server side.

Is this possible to do with Windows Workflow? If so, how?

The toolbox ReceiveActivity appears to create the WCF service for me.

I'd prefer the answer in terms of Workflow 4.0, if possible.

A: 

It depends a bit on the service contract as plain WCF has options not exposed by a workflow service. But other than that it should be perfectly possible to create a workflow with a Receive activity to have the same service contract. That leaves the URL but using URL rewriting in IIS should be able to redirect the original URL with its svc extension to the new URL with its XAMLX extension.

Maurice
Forgive me, I'm totally new to Workflow: do you mean I could recreate the contract with ReceiveActivities, then redirect to them?
ageektrapped
Yes that is perfectly possible in a lot of cases. Otherwise you can forward the message from your original service to the workflow service but that means having 2 separate services to maintain.
Maurice