Click here to Skip to main content
15,891,567 members
Articles / Programming Languages / ASM

Dynamically send WCF endpoint in Silverlight

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
17 May 2011CPOL2 min read 52.1K   12  
Silverlight webservice references get harcoded in ServiceReference.ClientConfig. The URLs get set to your development servers. But when you deploy live, the URLs don't match. Here's a way to dynamically change the URL of the service based on which website the Silverlight app is loaded from.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions