Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 133491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:26:32+00:00 2026-05-11T06:26:32+00:00

long time ago I wrote webservice that is still in use. Now I plan

  • 0

long time ago I wrote webservice that is still in use. Now I plan to refactor it. The webservice is full of most likely unused functions and I have no idea how it is used by the clients. In order to strip away the unused functions I need to analyze the function calls and data of currently installed webservice.

Is there a (free/opensource) tool that will enable me to log all activities of the webservice.

The ideal output of the tool I’m looking for could be a database containing all the called functions and a list of the data that was send to it for each call.

Solution

With the help of Martins answer I created this HttpModule which does exactly what I wanted:

public class LoggingModule : IHttpModule {     void IHttpModule.Init(HttpApplication context)     {         context.BeginRequest += new EventHandler(BeginRequest);     }      private void BeginRequest(object sender, EventArgs e)     {            TryAppendLog("Content-Type");         TryAppendLog("SOAPAction");     }      void TryAppendLog(string key)     {         string value = HttpContext.Current.Request.Headers[key];         if (string.IsNullOrEmpty(value)) { return; }                     HttpContext.Current.Response             .AppendToLog(string.Format("{0}: {1} ", key, value));                }      #region IHttpModule Member     public void Dispose() { }     #endregion } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:26:32+00:00Added an answer on May 11, 2026 at 6:26 am

    As Kobi wrote, you can find the required information in the IIS log files (i.e. in c:\WINDOWS\system32\LogFiles\W3SVC1).

    If you want to log the usage into a database, you could write a simple HttpModule, which checks every request, and logs it into the DB if it is a call to your web service. E.g. here’s the relevant parts of a very simple HttpModule, which logs calls to mywebservice.asmx:

    public class MyWebServiceDiagnosticsModule : IHttpModule {     public MyWebServiceDiagnosticsModule ()     {     }     void IHttpModule.Init(HttpApplication context)     {         context.BeginRequest += new EventHandler(BeginRequest);     }     private void BeginRequest(object sender, EventArgs e)     {         HttpContext ctx = HttpContext.Current;         string url = ctx.Request.Url.ToString().ToLower();         if (url.Contains('mywebservice.asmx'))         {             LogMethodCall(url); // parse URL and write to DB         }     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer We've used http://www.codeproject.com/KB/database/CsvReader.aspx with much success. May 11, 2026 at 12:45 pm
  • added an answer Why don't your try putting this signature: public bool DownloadFile(string… May 11, 2026 at 12:45 pm
  • added an answer With CMake 2.8 or later, use the file(COPY ...) command.… May 11, 2026 at 12:45 pm

Related Questions

A long time ago I had an apple ][ . I remember the command
A long time ago I saw this trick in Ruby. Instead of doing (for
A long time ago I had the following directory structure in my SVN repository
A long time ago when I was a young lat I used to do
I got this idea a long time ago when i saw an app do
I have a bit of a problem. I wrote an API a long time
Scenario: I have a Javascript-generated web page that someone else wrote a long time
I was kind of scratching my head at this a week ago, and now
I have a large collection of documents scanned into PDF format, and I wish

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.