I have two method in service – GetToken and GetData. User must first execute GetToken to select Token which must be set as parameter in GetData.
It is possible to use WF to force WCF to always before GetData execute GetToken ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes with a WorkflowService you can create an order of operations. You simply drop a receive activity for the GetToken operation first which creates the workflow and the GetData operation which is correlated on the token to continue the workflow. Of course this requires a persistence database.
On the other hand with WCF you can accomplish the same thing by rejecting a call to the GetData service without a valid token. You would issue a token and store it in a data store and then on the GetData call validate the token from the data store.
In reality WF is doing a lot of this under the covers for you with a persistence WorkflowService