哪一个更适合 jQuery.ajax 调用? .Net Web 服务还是 .ashx?
我最近一直在练习 jQuery.ajax()。我已经开始学习使用 jQuery.ajax() 调用 .Net Web 服务。
现在我正在考虑是否仅使用 jQuery.ajax() 调用服务器上的某些服务方法;拥有 .Net Web 服务仍然有意义吗?或者我应该使用 .ashx 处理程序?
谢谢!
I ahve been practicing jQuery.ajax() recently. I have started to learn to call .Net web-services qith jQuery.ajax().
Now I am considering if I will use only jQuery.ajax() calls to some service methods on the server; is it still meaningfull to have .Net Web-Services or I should go with .ashx handlers instead?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
两段引自 ASP.NET 论坛:
Two quotes from the ASP.NET forums:
您还应该看看微软最新的 Web 服务框架:WebAPI
就个人而言,我最近切换了到 ServiceStack.NET 来获取我的 Web 服务,我发现它更加简单和优雅(比 WebAPI 或 WCF )。
You should also have a look at microsoft's most recent framework for web services: WebAPI
Personally, I recently switched to ServiceStack.NET for my web services, and I find it's a lot easier and elegant (than WebAPI, or WCF).
WCF 服务将是优于 ASP.NET Soap Web 服务或 ashx 服务的首选方法。
a WCF service would be the preferred method over ASP.NET soap web services or ashx services .