Home  /  Questions  /  Question

50   50
Sep 16, 2010

How to get Dynamic Proxy of WCF Service hosted on multiple ports on same server

Is there any way to use WCF service proxy which is hosted on different ports without updating the service reference?
For example, my first Web site is taking service reference http://myservice:1001/service.svc (note port 1001). After successful deployment of this site, I want to use http://myservice:1002/service.svc (note port 1002) for some reason without building a new service references again.
It would be like updating/extending a service URI setting from Web.config. I am sure there is a simple way to achieve this with WCF services.