开发者

Logging ASMX Requests and Responses from Client

开发者 https://www.devze.com 2022-12-25 08:35 出处:网络
I\'ve got a C# web application which I c开发者_开发知识库an\'t easily update the code of. However, I can make configuration changes to the application.

I've got a C# web application which I c开发者_开发知识库an't easily update the code of. However, I can make configuration changes to the application.

The application calls out to a third-party ASMX web service, and I really need (if at all possible) to log the full XML requests and responses. I have no control over the web service so I have to do it from the client.

I'm not using WCF - this is standard ASMX web service calls.

Is there any way I can log the XML requests and responses from the client web app without having to redeploy the code?

Thanks in advance

John


I don't know of any way to do this without changing the application. You might get away with creating a SoapExtension as a separate binary, then storing it in the \bin folder and changing the web.config to point to it. Still, adding a new binary may very well be considered "changing the application".

Certainly, ASMX has no configurable logging that does not require coding.

0

精彩评论

暂无评论...
验证码 换一张
取 消