user8896615
user8896615

Reputation: 13

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?

Upvotes: 1

Views: 1035

Answers (1)

TempoClick
TempoClick

Reputation: 379

If you are using SOAP, try this:

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

Upvotes: 2

Related Questions