Jordi
Jordi

Reputation: 551

How to do crossdomain calls from Silverlight?

What's needed to succesfully make a crossdomain call from Silverlight?

Upvotes: 5

Views: 861

Answers (4)

Jason Roberts
Jason Roberts

Reputation: 616

Maybe also check out JSONP http://www.west-wind.com/weblog/posts/107136.aspx for example this is how you can get Twitter updates in JavaScript on the client side even though Twitter is on a different domain than you web page.

Upvotes: 0

Tim Heuer
Tim Heuer

Reputation: 4311

Intellisense helper file and walk-through: http://silverlight.net/learn/learnvideo.aspx?video=47174

Upvotes: 2

Markus Olsson
Markus Olsson

Reputation: 22580

If I understand your question correctly you would need to have a clientaccesspolicy.xml file in the domain web root of the server that you wish to call (ie www.example.com/clientaccesspolicy.xml) that defines that it is ok for services from other domains to call services on that domain.

Read the How to Make a Service Available Across Domain Boundaries MSDN article for more detailed information.

Upvotes: 5

Related Questions