Configuring cross-domain calls
In the previous recipes, we have used services that were hosted within the same website (and consequently the same domain) as the Silverlight application itself. However, more often than not, this will not be the case in real-world scenarios. We may need to connect to a third-party service (such as Flickr's API services) from Silverlight. Even if we wrote the service layer ourselves, it may be hosted on a different domain.
Silverlight imposes restrictions on communication with external services. However, Silverlight allows services to opt-in to allow being connected to from a Silverlight application. In this recipe, we'll look at the actions we need to take to make it possible to connect to a self-written service ...
Get Silverlight 4 Data and Services Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.