Recommended

  • Silverlight 4 Podcast Pack with Tim Heuer
  • Building Modular Silverlight Applications
  • Prism -  10 Things to Know
  • Securing Silverlight Application and WCF Service using ASP.Net Authentication Techniques
  • Model– View – ViewModel in Silverlight
Skip Navigation LinksHome / News / View News

Handling WCF Service Paths in Silverlight 4 – Relative Path Support

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on May 04, 2010
(0 votes)
Dan Wahlin explains very precise how to use relative path support for calling services in Silverlight 4.

If you’re building Silverlight applications that consume data then you’re probably making calls to Web Services. We’ve been successfully using WCF along with Silverlight for several client Line of Business (LOB) applications and passing a lot of data back and forth. Due to the pain involved with updating the ServiceReferences.ClientConfig file generated by a Silverlight service proxy (see Tim Heuer’s post on that subject to see different ways to deal with it) we’ve been using our own technique to figure out the service URL. Going that route makes it a peace of cake to switch between development, staging and production environments.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 2 and 7 and type the answer here:

Welcome to SilverlightShow - the portal for Silverlight resources. You can find here daily news (RSS), articles authored exclusively for SilverlightShow (RSS), showcases, tips, books, and much more! Follow us on twitter.
Join the discussions and sharing of experience by becoming a member. Or, find out the top 10 reasons to sign up. Thanks for stopping by! (hide this)