Question

Basically, I'm trying to tap into the Soap pipeline in .NET 2.0 - I want to do what a SoapExtension can do if you provide a custom SoapExtensionAttribute... but to do it for every SOAP call without having to add the extension attribute to dozens of WebMethods.

What I'm looking for is any extension point that lets me hook in as:

void ProcessMessage(SoapMessage message)

without needing to individually decorate each WebMethod. It's even fine if I have to only annotate the WebServices - I only have a few of those.

Was it helpful?

Solution

There is a configuration property, soapExtensionTypes that does this, but affects all web services covered by the .config (all of them in the same directory or a sub-directory as the .config)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top