Dynamically setting WCF endpoint
- by Matt
Ive just started using WCF with silverlight and its working fine. But one thing that is bugging me is the address of the .svc. Why is it statically set in the .config?
Would it be possible to set it when creating an instance of the proxy class? And if so, is there a way to set it to the current address?
Our software will be deployed on many different domain and we cant change the config every time. The svc will always be in the same domain as the silverlight page.
Thanks.