Groups | Blog | Home
all groups > dotnet web services > october 2005 >

dotnet web services : Get the requested WebMethod name in Global.asax


Roland Dick
10/4/2005 12:00:00 AM
Hi,

surely simple enough, but I got stuck on this one:
I want to use the Global.asax file to log every call to a webservice
method. For this, I'm using the Application_BeginRequest method. The
problem now is: how can I get the name of the method the client
requested? All properties of the Context.Request object seem to have
just the filename (.asmx) of the webservice...

Thanks for any hints on this!

Peter Kelcey
10/4/2005 10:52:59 AM
Roland,

You can try

System.Web.HttpContext.Current.Request.Params.Item("HTTP_SOAPACTION")

Peter Kelcey
Roland Dick
10/5/2005 11:52:42 AM
[quoted text, click to view]

Thanks a lot, Peter, that did the trick.

AddThis Social Bookmark Button