Groups | Blog | Home
all groups > dotnet web services enhancements > february 2006 >

dotnet web services enhancements : Setting Security Headers in SoapEnvelope


Mohan Babu D
2/16/2006 9:48:27 PM
Hi,
In one of my WSE 2.0 application, i used to set the securiy headers as
shown in the following code.

securityDoc.DocumentElement is a XML element.

envelope.Context.Security.LoadXml(securityDoc.DocumentElement);

As envelope.Context.Security has been depricated in WSE3.0, how can i
achieve this

Please help

Thanks and regards
Pablo Cibraro
2/17/2006 10:19:58 AM
Hi Mohan,

The recommended approach to do the same in WSE 3.0 is by means of a Custom
Security Assertion.
These kind of assertions receive a security element as parameter and they
can manipulate it. You can derive your assertion from one of the existing
turn-key assertions (Kerberos, Username, etc) or create one from the
beginning.
Tomek, one of the WSE developers has written an excellent article about this
topic. You can find this article here
http://msdn.microsoft.com/msdnmag/issues/06/02/WSE30/default.aspx

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com


[quoted text, click to view]

AddThis Social Bookmark Button