Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do crossdomain calls from Silverlight?

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

like image 441
Jordi Avatar asked Aug 27 '08 09:08

Jordi


3 Answers

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.

like image 185
Markus Olsson Avatar answered Nov 15 '22 05:11

Markus Olsson


See Jon Galloway's blog post on this as well

http://weblogs.asp.net/jgalloway/archive/2008/12/12/silverlight-crossdomain-access-workarounds.aspx

like image 42
Jeff Atwood Avatar answered Nov 15 '22 05:11

Jeff Atwood


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

like image 20
Tim Heuer Avatar answered Nov 15 '22 06:11

Tim Heuer