Priority and Group settings in SOAPExtensions.



My second attempt at the same question...


Can someone clarify the precedence of execution for SOAPExtensions?? I have
a security extension which I configure in Web.Config. Works great thanks for
that.
I have another extension which I only want to apply to a couple of web
methods, so I create a SOAPExtensionAttribute so I can decorate the
appropriate web method.

I want the >>second<< extension to execute first (because I need access to
security info from the SOAP messagefor the extension to work.) so I set its
priority to "0". Remember this is the one configured by decorating the
apropriate web methods.

I then set the Group on my security extension (configured in web.config) to
"1" and priority="1".
To me this would imply my >>second<< extension should execute first.
It appears to >>try<< to execute first but there is >>NOTHING<< in the
message stream. I know it executes first because I log details.

OK, so I change the second extension to be configured via web.config,
setting group to "0" and priority="0". This works fine!

Can someone tell me what is going on. I cannot find anything on MSDN to help
me out here.

As always any help greatly appreciated.



.



Relevant Pages

  • Re: Priority and Group settings in SOAPExtensions.
    ... Can someone clarify the precedence of execution for SOAPExtensions?? ... a security extension which I configure in Web.Config. ... I have another extension which I only want to apply to a couple of web ... To me this would imply my>>second<< extension should execute first. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Priority and Group settings in SOAPExtensions.
    ... >> a security extension which I configure in Web.Config. ... >> appropriate web method. ... >> access to security info from the SOAP messagefor the extension to ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: What is the best chmod for a fopen/fwrite?
    ... My users can upload images in a folder on my system. ... Webserver will only execute a file if explicitly instructed to execute files with given extension. ... So, if the file extension is ".php" it will be executed, if the extension is ".gif" it won't, even if it contains chunks of php code. ... That is, the protection from "remote execution" attacks of this kind is quite simple: if you offer file uploads, always make sure file extension matches its content and only allow extensions from your whitelist. ...
    (comp.lang.php)
  • Re: What is the best chmod for a fopen/fwrite?
    ... My users can upload images in a folder on my system. ... Webserver will only execute a file if explicitly instructed to execute files with given extension. ... So, if the file extension is ".php" it will be executed, if the extension is ".gif" it won't, even if it contains chunks of php code. ... That is, the protection from "remote execution" attacks of this kind is quite simple: if you offer file uploads, always make sure file extension matches its content and only allow extensions from your whitelist. ...
    (comp.lang.php)
  • Re: Thank you.....and goodbye
    ... You have an e-mail client that becomes a command interpreter that will load ... the attachment file into memory and start its execution? ... With Windows, the extension determines the ... It has an HTML-Modify plug-in which has an option to rename ...
    (microsoft.public.outlook)