Search code examples
c#.netweb-servicesasmx

How to get method name of called webservice.asmx on the server side


Im calling some of my WebMethod from my Web service on the client side. It's .NET webservice.asmx. Then When i process this request on the server side first its going to AuthModule : IHttpModule. There i need information about method name.

I need to get information about the name of called webservice method on the server side.

HttpContext.Current.Request.Url.AbsolutePath;

returns .../serviceName but i need to recognize which method was called. Any idea?


Solution

  • If you are using SOAP, try this:

    HttpContext.Current.Request.Headers["SoapAction"]