I am creating a WCF service and Client application. I want to use the service in the client application.
The location where the WCF service will be hosted is not yet finalized. I want to dynamically add the reference of the hosted WCF service without building the client application. How can I achive this?
Thanks,
Ram
Do this:
I think this would be by far the easiest solution.
If you insist on a dynamic proxy – there’s a sample of a WCF dynamic proxy here:
http://code.msdn.microsoft.com/netfxsamples/Wiki/Print.aspx?title=WCF%20samples&version=8&action=Print
Scroll down a bit to find the sample. It was C# code to show you how to dynamically create a WCF proxy all in code.