troubleshooting Question

Http handlers and web services

Avatar of numberkruncher
numberkruncherFlag for United Kingdom of Great Britain and Northern Ireland asked on
Web DevelopmentC#ASP.NET
5 Comments1 Solution1041 ViewsLast Modified:
I am working on a web application which frequently accesses a database via various Ajax calls. At the moment I am doing this using http handlers. However, I was wondering what kind of benefits there could be if I started using web services from now forth.


The following is an example of a logging system which I've already created, but since it already exists, it may (or may not) make things slightly clearer. This log system is used by the website itself to report errors, completion of maintenance tasks; and admin can also create log entries via their control panel.

I have a class named "Log" which exposes various static members which can be called upon by the web application to interact with the log database. These methods include "CreateEntry" for creating a new entry, and "GetListing" to get an array which can then be presented within a client web browser.

I also have a HTTP handler which uses various query strings to select the kind of action required. These commands include "create", and "listing" for similar reasons to the above. Using JavaScript I send Ajax requests such as "loghandler.ashx?cmd=create" with the specifics contained within the POST body. The web handler then invokes various static methods of the "Log" class; and returns any output to the client browser.


I am interested in hearing the views of the experts on this topic.

Many thanks,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros