Hi Peter,
Did you try with the property RequestSoapContext.Current.Envelope ?.
That property is a Xml document with the entire soap envelope. Of course,
you will have to use xpath to get the security header of the message.
Note: The security assertion removes the security header from the envelope
after processing it,
so you will have to develop a custom assertion and configure it before the
security assertion in the policy.
Let me know if you need more details about this solution.
Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
> Saving encrypted and signed information from incomming Soap-Messages in a
> directory or database
[quoted text clipped - 32 lines]
>
> Are there any Events on incomming messages?
Peter Schuhmann - 07 Apr 2006 18:29 GMT
> Note: The security assertion removes the security header from the envelope
> after processing it,
Yes, thats why i can't use the header (RequestSoapContext.Current.Envelope)
>so you will have to develop a custom assertion and configure it before the
> security assertion in the policy.
You're right. i developed a custom assertion. (after some problems i noticed
that 'before' is a important word, now i can save the encrypted and signed
data)
Fine, thanks!