Rache
Rache

Reputation: 217

How to track webservices calls

I am using a webservice that is hosted on an independent server with Oracle DB connection. The webservice is called from presentation side and from a CMS we use. Since this service doesn't return any success or error message back to the client, I was hoping for a way to track all calls made and action taken on this service. Is there a way I track all calls made to this Service. I am using Java platform

Upvotes: 0

Views: 1020

Answers (1)

Mike Thomsen
Mike Thomsen

Reputation: 37506

Several different ways to approach this:

  1. If you have access to the web service code, it's trivial to add a simple JDBC call to send an update to a table that holds a counter in the Oracle DB.
  2. You can implement something on the client side that stores it in a full database, SQLite or even in memory and periodically writes the content in memory to a flat file.
  3. Depending on how things are configured, you can write a log analyzer that sifts through the server log for calls to that service.
    1. This is easy to implement with log4j. Just look up how to add a log4j configuration to your project via a few Google searches and you can customize the message to something really convenient for you to write a quick script to read.

Upvotes: 1

Related Questions