简体   繁体   中英

How to get “type” of a request - web service (ASMX)

I want to log the "type of" request that access my simple ASMX page. How would I be able to do this?

TYPE typeofReq = request.Method = WebRequestMethods.Http.Get.GetType();

I just want to know how applications are accessing this web service.

If you just want to know which methods of the web service are being called, implement simple logging that logs that name of the method as part of processing the request. Alternatively, you should also be able to get this information from the IIS logs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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