简体   繁体   中英

VB.NET Web Service. How I can save in memory the XML request?

I have a web service in VB.NET and I need to control the response time and send an e-mail when the process time is greater than 1 second.

The problem is that when the process time is greater than 1 second, I can not obtain the SOAP request.

I have tried with the SoapExtensions, but in this, I can not obtain the request inside the webmethod. I can only save the response in a file or a database.

How I can obtain the request?

I need obtain the request/response greater than 1 second to check the perfonmance of this.

You can see the code in this link: MSDN Example

The problem is that this example saves the logs in a file, but I need obtain this in memory to determine if I need improve performance and send this for e-mail to check later

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