I am using the following code in my WCF service to call another web service which may or may not be a WCF service.
ChannelFactory<IService1> myChannelFactory = new ChannelFactory<IService1>
(myBinding, myEndpoint);
So I want to have some information in a xml file from which i read the various services endpoints and want to pass the binding information to the channel factory and call the other services based on the information i have in the config XML file.
So i want to generate the channel factory dynamically using different service contract information every time.
Is it possible in channel factory since various services have different Interfaces?
In other words from the code above I have IService1 but when i read another service information from an xml file I want to create a channel with another Interface?