简体   繁体   中英

write a program to get response, request from web method calls

I need to write a small C# Win32 program that can show me like a log file the response and request that is done when we call a web method of a third party web service that is also in .NET But I have no idea where to start from or what sample codes to look at. So There is a third party application we are using that is using its own ASP.net web service to do some stuff, so it has some methods like GetDevice, GetPatient, etc that we are calling, now I want my program to show me like a log file what is going on with response/request when I am call each of those methods.

Thanks a lot.

Have tried looking at WireShark?

Wireshark is the world's foremost network protocol analyzer. It lets you capture and interactively browse the traffic running on a computer network.

If you are using HTTP protocol, you can configure your client to go thru a Web Debugging Proxy like Fiddler. Fiddler can be downloaded free from www.fiddler2.com .

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