O'Reilly logo

Silverlight 4 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required