I have a workflow which has a custom activity which calls a web service. This workflow is called by a silverlight application.
The problem I have is that when I call the workflow the first time I get one response. If I call it again, I get two responses etc (I am using a Receive and SendReply activity).
I thought this was happening because every time I call the workflow a new instance was created and every instance of the workflow running would reply. I have tried using correlation to see if this would resolve the problem but this does not in this case.
Does anyone know why this would be the case.
Regards
Mike
It sounds like you have some logic error in your workflow where it returns a result, loops back to return a new result on the second request but the second result is added to the fist result instead of clearing it first. Can happen quite easily if you are returning a collection of items or something similar. Remember that the workflow instance is stateful and any variables will be preserved from one SOAP request to the next.