When using the non-rest API, I was doing this:
string workflowServer = "localhost"; string workflowApplication = "My Custom Workflow Application"; using (WorkflowConnection connection = WorkflowConnection.CreateConnection(workflowServer, workflowApplication))
This gave me the ability to switch out the value of workflowServer with a value in my web.config file.
Using the Rest API though, the service reference is added by specifying the location of the web service, e.g. "http://localhost/Workflow/api/RestWorkflowAPI.svc"
Which is fine for the development environment, but when the app is deployed the administrator needs to be able to change the host name to something other than localhost, since their WF server may not be on the same server as the web app.
How is this accomplished? I know how to read/write values from/into a config file, I just don't know how to update a service reference's endpoint.