Today, Sam draws our attention to Matt Powell's MSDN article "Digging into SOAP Headers with the .NET Framework." In it, he describes a class that extends System.Web.Services.Protocols.SoapExtension to add headers on a site-wide basis.
I played around a bit with SoapExtensions myself earlier this year. I created a pair of walkthroughs (one for VS.NET and one for the command line) that detail the process of creating an extension that logs traffic and obfuscates SOAP message traffic. I also wrote up an extension I created that transforms rpc/encoded SOAP messages into document/literal messages on the fly, so the same service can handle both rpc- and document-style messages. [Later... To clarify exactly what the this extension does to an incoming RPC-style SOAP message, I've added this example.]
5:16:39 PM
|