Base WebService Page and Event?




I have a multiple Framework 2.0 .asmx.cs that have a string input
property called "securityinput" on many WebMethods. Each .asmx.cs
inherits from a base class that inherits from WebService.

I would like to create a custom Event in the constructor of this base
class that would capture/inspect the "securityinput" stuff. Then all
existing child WebService pages, as well as new ones, could have their
security automatically handled without doing their own
security-related method calls within their web methods.

I am forced to evaluate this "securityinput" manually because the web
service lives in a very heterogenous environment and some callers
cannot do anything beyond add securityinput as a parameter.

Is this possible?

Thanks.


.


Loading