if (HttpContext.Current.Request.Path.Contains(".asmx") || HttpContext.Current.Request.Path.Contains(".svc")) { string xmlParserstring = GetDocumentContents(HttpContext.Current.Request); if (!string.IsNullOrEmpty(xmlParserstring)) { XDocument bodyRequest = XDocument.Parse(xmlParserstring); string methodName = bodyRequest.Root .Elements() .Where(eqw => eqw.Name.LocalName == "Body") .Elements() .FirstOrDefault().Name.LocalName; if (methodName.Contains("LogonMethod") || methodName.Contains("UpdatePassword")) Log.DebugFormat("Notification from ASMX \\SVC: {0} at {1}", HttpContext.Current.Request.Path, DateTime.Now.ToString()); else Log.DebugFormat("Other Method Names {0}", methodName); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)