The Expense Reporting Sample given in Labs(beta2) is based on remoting.
what are the changes that we need to do in the same sample if we want to use WebService instead Remoting.
The Expense Reporting Sample given in Labs(beta2) is based on remoting.
what are the changes that we need to do in the same sample if we want to use WebService instead Remoting.
Expense Reporting Sample using Webservices
Alfo
I believe the updated expense reporting application from www.windowsworfklow.net uses WCF instead of remoting. That should get you started. It also shows the issues if you need to use ASMX web services. You have to manage routing the workflow instance id so that the correct instance of your workflow is invoked.
Matt
LYx
Marcos,
The plumbing between the WCF Service and WF can be done via a LocalService layer registered in the ExternalDataExchangeService. There is no built-in a messaging pattern and workflow activation between the WCF Service OperationContract and Workflow. It is a custom connectivity, based on the event/delegate fashion pattern and blocking mechanism. The WCF endpoint binding doesn't have anything to the Workflow. Once service operation has been invoked, the method can handled a process to the workflow such as creating a sync/async workflow, passing parameters, blocking process until receiving a response, etc.
The workflow/activity design for WCF Service should be considered together based on the WCF Service behavior. For instance, for stateless enterprise operation can not be used any static property in the workflow (such as DependencyProperty), transactional operation needs to flow to the workflow (dependent transaction), availability of the Sql access (firewall), blocking call, request-reply messaging, etc.
It will be nice having a built-in connectivity between the WCF and WF based on the service behavior, but now we can handled this stuff by custom services and activities.
Thanks
Roman
DIW
I. Silvestri
Hi. Matt it’s right, Expense Reporting Application uses WCF.
I'm not a WCF (Indigo) expert, but one (i think) of the main features of WCF it the ability to change the communication way (transports I mean) easily.
HTH
Marcos