是否.NET 4.0还支持ASMX [英] Does .net 4.0 still support asmx

查看:192
本文介绍了是否.NET 4.0还支持ASMX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 在我打开我的.NET 2.0 ASMX Web服务在VS2010和迁移到.net4.0。如果我只需要运行我的ASMX W / O变化忒code到WCF格式,我仍然可以运行在.NET 4.0中的老ASMX服务?将这项工作,因为它是?
  2. 在我的web.config文件中也有WSE设置恰好这算什么?
  3. 在WCF / net4.0不支持附件,我需要改变我的ASMX的webmethod返回的数据集在体内,将这项工作?
  4. 在我试图运行使用数据集作为在.NET 4.0中的附件我现有的ASMX服务,它的工作?
  5. 在我能看到ASMX文件可以在.NET 2010中添加?他们仍然支持?
解决方案

是的,你可以在.NET 4.0中也使用ASMX。


引用戴夫·沃德从他的回答在他的岗位评论在Encosia命名的ASMX和JSON - 常见错误和误解

  

我觉得WCF是很大的情况下,   在这里,你可以充分利用其   强项,就像当你可以使用   tcpBinding模式。但是,WCF的   复杂性使得很难认真   考虑简单的AJAX回调   功能,其中一个更具有针对性,   更成熟的解决方案已经存在了。

     

ASMX决不德precated或   过时的,即使是在.NET 4这是   我的误解,实际上1   打算在这个系列覆盖。

  1. I Opened my .net 2.0 ASMX webservice in VS2010 and migrated to .net4.0. If i simply run my ASMX w/o changing te code to WCF format i can still run old asmx service under .net 4.0 ?? will this work as it is?
  2. My web.config file also has WSE settings what happens to this?
  3. WCF/net4.0 does not support attachments, do i need to change my asmx webmethod to return as dataset in the body and will this work?
  4. I tried running my existing asmx service using dataset as attachments in .net 4.0 and it worked?
  5. I can see asmx file can be added in the .net 2010? are they still supported?

解决方案

Yes, you can use ASMX in .NET 4.0 also.


Quoting Dave Ward from his reply to a comment on his post at Encosia named ASMX and JSON – Common mistakes and misconceptions

I think WCF is great in situations where you can take advantage of its strengths, like when you can use the tcpBinding mode. However, WCF’s complexity makes it hard to seriously consider for simple AJAX callback functionality where a better targeted, more mature solution already exists.

ASMX is by no means deprecated or obsolete, even in .NET 4. That’s actually one of the misconceptions I’m going to cover in this series.

这篇关于是否.NET 4.0还支持ASMX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆