Normally, one can specify a service binding using the app.config file, and the system will automatically read from there. But what if my program is only a library (non-executable dll)? It can't have an app.config, and I can't change the main app code or config file. I can specify service binding using code, but this is not a good idea because I don't want to have to recompile each time binding changes.
My idea is having the complete tag in a text file, my dll will read it and parse it to an WSHttpBinding object, and my code will use this object to create the service client.
How do I do the parsing?