I know I can do something like the following code to dynamically create a client endpoint connection in WCF:
BasicHttpBinding basic =
new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);
basic.Security.Transport.ClientCredentialType =
HttpClientCredentialType.Ntlm;
EndpointAddress serviceAddress =
new EndpointAddress("http://whatever/service.svc");
YourServiceClient m_client = new YourServiceClient(basic, serviceAddress);
The problem is that in this case I need to know what 'YourServiceClient' is. What I want to be able to do is be getting the type 'YourServiceClient' from a DB, where its stored as an object. Does anyone know how I would go about doing something like this? Where I have the value of 'YourServiceClient' in an object I've retrieved from the DB?