Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does .net 4.0 still support asmx

  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?
like image 922
Gauls Avatar asked Feb 03 '11 15:02

Gauls


2 Answers

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.

like image 90
naveen Avatar answered Oct 15 '22 21:10

naveen


ASMX Web Services would fall under the .NET framework lifecycle. The .NET framework 4.0 and 4.5 support ASMX web services. Microsoft recomends that no new code be created using ASMX as pointed in the earlier answers.

like image 44
Vin Avatar answered Oct 15 '22 19:10

Vin