简体   繁体   中英

Silverlight Cross-Domain Calls without WCF

I have a Silverlight application. I'm trying to make calls to RESTful web service.

The internet seems to say I need to make WCF proxy, and put the Silverlight client access policy file in the root of that WCF proxy.

My question is -- Can I just put a client access policy file on the root of the RESTful (non-WCF) webservice, and forget about the WCF middle man?

Absolutely. Rather than making your calls through a WCF proxy, you'll just make your calls through the standard WebClient.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM