Adding SOAP Headers
Very few real-world Web Services will likely operate without the assistance of SOAP Headers. SOAP Headers provide you with an outlet for storing security and encryption information, authentication data, and transactional and sequential processing instructions. Anything that is orthogonal to the method itself is a candidate for a Header. It isn't too surprising, therefore, to find that .NET provides an easy mechanism to assist you with SOAP Header processing. True to .NET form, this support comes primarily in the form of attributes, although a .NET class is designed specifically to support Header data.
There is a singular surprising aspect to using the .NET SOAP Header classes, however. .NET attributes do not need to be static. ...
Get Applied SOAP: Implementing .NET XML Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.