My project has DLL which implement Web Client functionality. How can I get XML request which is send to WCF service from that DLL? My call of DLL method looks like this:
LocalUser usr = DLLServiceProxy.GetUser("JohnS");
My project has DLL which implement Web Client functionality. How can I get XML request which is send to WCF service from that DLL? My call of DLL method looks like this:
LocalUser usr = DLLServiceProxy.GetUser("JohnS");
如果它是出于调试目的,那么您可以检查 svclog。如果它不是用于调试目的,那么您将不得不更改 dll 中的代码,以便它返回该 xml。你为什么想要那个xml?
有关如何配置 svclog 的更多信息
我会尝试使用一些 http 嗅探器,比如 Fiddler,这个(我自己没有测试过),或者其他的