简体   繁体   English

如何从位于DLL中的WCF Web服务获取XML请求?

[英]How do I get the XML request from WCF web service which located in DLL?

My project has DLL which implement Web Client functionality. 我的项目具有实现Web客户端功能的DLL。 How can I get XML request which is send to WCF service from that DLL? 如何获取从该DLL发送到WCF服务的XML请求? My call of DLL method looks like this: 我对DLL方法的调用如下所示:

LocalUser usr = DLLServiceProxy.GetUser("JohnS");

If it's for debugging purpose then you can check the svclog. 如果用于调试目的,则可以检查svclog。 If it's not for debugging purpose , then you will have to change the code in the dll so it returns that xml. 如果不是出于调试目的,那么您将不得不更改dll中的代码,以便它返回该xml。 Why would you want to have that xml? 您为什么要拥有该xml?

More info on how to configure svclog 有关如何配置svclog的更多信息

我会尝试使用一些http嗅探器,例如Fiddler, 这个 (不是我自己测试的)或其他东西

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM