Function Call

  • Thread starter Don Gerard via .NET 247
  • Start date
D

Don Gerard via .NET 247

I am looking for a way to determine what funtion has been called in a web service. I want to log the function name and the IP address of the caller.

Thanks!
 
B

Brock Allen

You can add a global.asax file and add a Application_BeginRequest event handler.
You then have access to the Request object which can give you information
about the HTTP request. For a web service call, you'll have to find the proper
SOAP header (I forget its name). Then take that info and log it wherever
you want. The nice thing about Application_BeginRequest is that it's called
for every request into your application regardless of which web page or web
service. It's nice to have code in one place.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top