Wednesday, December 3, 2008

Silverlight and cross-domain issues especially with SOAP

I keep having issues with this - mainly due to the examples on the internet and various blogs giving the wrong information. If you want to call a web-service then the root of the website must have a crossdomain.xml that contains:

<!DOCTYPE cross-domain-policy SYSTEM "">
<allow-http-request-headers-from domain="*" headers="*"/>

Note that lots of the examples have the wrong element name for the "allow..." bit.

No comments: