Soap logging in .net

Question :

Soap logging in .net,

Answer :

I have an internal enterprise app that currently consumes 10 different web services. They’re consumed via old style “Web References” instead of using WCF.

The problem I’m having is trying to work with the other teams in the company who are authoring the services I’m consuming. I found I needed to capture the exact SOAP messages that I’m sending and receiving. I did this by creating a new attribute that extends SoapExtensionAttribute. I then just add that attribute to the service method in the generated Reference.cs file. This works, but is painful for two reasons. First, it’s a generated file so anything I do in there can be overwritten. Second, I have to remember to remove the attribute before checking in the file.

Read More  What is the difference between ++i and i++?

Is There a better way to capture the exact SOAP messages that I am sending and receiving?

,

This seems to be a common question, as I just asked it and was told to look

You don’t have to edit the generated Reference.cs. You can reference the extension in your application’s app.config.

That’s the answer Soap logging in .net, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Read More  Sanitising user input using Python

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you