One question I was asked during my web cast yesterday about calling WCF services from
Silverlight is if the service could be a workflow service.  I said – “Of course”
– not knowing that it was a little more complex than that 🙂

That said – here is a sample.

SilverLightUsingWorkflow.zip
(535.08 KB)

Unfortunately I don’t have time to go into the details right now – working on another
project at the moment. The key to making it work is setting the instanceid context
to null on the server when the “last” operation is called – in this case the operation
implemented inside of the eventhandler which causes this state-machine workflow to
move to the completed state (so that the client can then start a new workflow).

I hope to find an more elegant and automatic solution – but this works for now (Hope
you are listening Jason from the webcast – this ones for you ;-))



Check out my BizTalk
R2 Training.