Eva Balint
Eva Balint

Reputation: 21

WebService logging

I would like to log every request that arrive to my webservice, end to log every response. I mean, the incoming and outgoing text stream. So far I've been able to log the SOAP requests and responses, but the ones which sends a browser, I coundn't. I tried to implement the IHttpModule interface, and handle the HttpApplication.BeginRequest event, but it didn't fired :(

Thanks for any help, Eva.

Upvotes: 2

Views: 3525

Answers (3)

Richard Nienaber
Richard Nienaber

Reputation: 10564

Using the logs from IIS won't give you the full payload but you can use a SOAP extension. I've used one before to get the full text of a SOAP packet. The advantage of a SOAP extension is that you should still get the full xml even if you use SSL for encrypting the stream. Here's another example of a trace extension.

Upvotes: 1

Freiheit
Freiheit

Reputation: 8777

The server software hosting your webservice should be able to log most of this. Since this is .NET I'm guessing its hosted on IIS, so check superuser.com for info on how to view and get detailed logs from IIS.

Upvotes: 2

Jay Cincotta
Jay Cincotta

Reputation: 4386

You should take a look at Gibraltar. It includes easy and flexible support for tracking method calls including parameters and return values. You can see a couple example graphs here and here. And you can see a video example here.

http://www.GibraltarSoftware.com

Upvotes: 0

Related Questions