[英]How to get method name of called webservice.asmx on the server side
我從客戶端的Web服務調用一些WebMethod。 是.NET webservice.asmx。 然后,當我首先在服務器端處理此請求時,將其轉到AuthModule:IHttpModule。 那里我需要有關方法名稱的信息。
我需要獲取有關服務器端調用的webservice方法名稱的信息。
HttpContext.Current.Request.Url.AbsolutePath;
返回.../serviceName
但我需要識別調用了哪個方法。 任何想法?
如果您使用的是SOAP,請嘗試以下操作:
HttpContext.Current.Request.Headers["SoapAction"]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.