Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

ashx vs svc

What is the difference between ashx and svc and why would I chose one over the other?  They appear to do the same thing.
Avatar of mrjoltcola
mrjoltcola
Flag of United States of America image

[* edited - thought the asker meant .aspx, but he really did mean .ashx]

aspx is the older, legacy .NET web services.

svc is WCF services. You need .NET 3.0 + for that.

They both are used for web services.

The differences are a mile long, but primarily WCF is a large toolkit, a framework, for supporting a myriad of transport protocols, authentication mechanisms, serialization formats, etc. WCF can be better for tailoring the service to interact with other heterogenous systems. It has better security, better integrity, reliable messaging.

I'd suggest just researching WCF on Google / MSDN.

Most new projects are probably going to want to use WCF.
Oh, I apologize. You did mean ashx! I admit I never heard of it until just now!
ASKER CERTIFIED SOLUTION
Avatar of mrjoltcola
mrjoltcola
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial