问题描述
我公司使用的软件具有一个Web服务,其签名或多或少是这样的:
The software my company uses has a web service which signature is more or less like this:
[WebMethod]
public DataSet MakeQuery(string sql) {
}
注意1:我没有此代码.
NOTE 1: I don't have the code for this.
最近,我们注意到Sql Server获得了很多进程而不会死,所以我想跟踪此webMethod的输入.
Recently, we noted the Sql Server gets a lot of processes without dying, so I want to trace the input of this webMethod.
有什么办法可以做到这一点?
Is any way I can do this?
我当时在想SoapExtension,但是我没有Web服务的源代码.基本上,我想知道发送SOAP请求的机器的名称.
I was thinking of a SoapExtension, but i don't have the source code for the web service.basically I want to know the name of the machine that sends the SOAP request.
注意2:SQL Server的进程将服务器报告为主机.
NOTE 2: The SQL Server's processes report the server as the host.
推荐答案
尝试 Wireshark 看看会得到什么通过电线传输.
Try Wireshark to see what gets transmitted over the wire.
这篇关于SOAP请求的跟踪主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!