简体   繁体   English

从Silverlight调用ASP.Net或WCF服务

[英]Calling ASP.Net or WCF Service from Silverlight

I am new to Silverlight. 我是Silverlight的新手。 In Silverlight, we can get data from server using ASP.Net (using WebClient and HTTPWebRequest classes in Silverlight) and using WCF Service. 在Silverlight中,我们可以使用ASP.Net(在Silverlight中使用WebClient和HTTPWebRequest类)以及使用WCF服务从服务器获取数据。

Assuming that I do not need the cross domain capability, what is a good option in terms of Security and ease of development? 假设我不需要跨域功能,那么在安全性和易于开发方面,有什么好的选择?

Thanks for reading the post. 感谢您阅读这篇文章。

Pavan 帕万

I'd just go with WCF ... the model is strong and it looks like Microsoft continues to put resources on the further development of it. 我只想使用WCF ...该模型很强大,而且看起来Microsoft继续在继续开发它。 I mean, there's nothing wrong with rolling your own "web service" with webclient either, but I prefer WCF as it even offers other services like the authentication web services. 我的意思是,使用webclient滚动自己的“ Web服务”也没有错,但是我更喜欢WCF,因为它甚至还提供其他服务,例如身份验证Web服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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