I have a main workflow service and another "agent" workflow service. The agent workflow service will be hosted on a bunch of machines, all listening on the same port. For example, the endpoint addresses of the agent workflow services
would be: http://ServerABC:9700/SomeService, http://ServerDEF:9700/SomeService, and so on.
The main workflow service (which is hosted on a separate server) needs to determine
at runtime the agent it should talk to. For example: if the main workflow is passed a server name "ServerABC" as a parameter, it needs to figure out that it has to communicate with the agent on http://ServerABC:9700/SomeService.
The main and agent services are built using the designer. I am using context correlation between the main and the agent workflow services.
How can I set the endpoint address dynamically in the Send activity of the main workflow?
Thanks in advance.
Below is a portion of the web.config file from the main workflow service. Note the commented portion. If I specify it that way, it works because it knows the address of the agent's endpoint. That's alright if the agent is running on only one
server. But I need to find that address at runtime in the main workflow service.
View Complete Post