简体   繁体   English

如何在服务器端获取名为webservice.asmx的方法名称

[英]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. 我从客户端的Web服务调用一些WebMethod。 It's .NET webservice.asmx. 是.NET webservice.asmx。 Then When i process this request on the server side first its going to AuthModule : IHttpModule. 然后,当我首先在服务器端处理此请求时,将其转到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. 我需要获取有关服务器端调用的webservice方法名称的信息。

HttpContext.Current.Request.Url.AbsolutePath;

returns .../serviceName but i need to recognize which method was called. 返回.../serviceName但我需要识别调用了哪个方法。 Any idea? 任何想法?

如果您使用的是SOAP,请尝试以下操作:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM