You want to send some information to one or more Web methods without having to add it as a method parameter.
Create a custom SOAP header that encapsulates the additional information you need.
Sometimes, you might need to submit information to a Web method that does not specifically relate to the method itself. This is most often the case when you are building your own custom authentication system or state management system, and you need to submit some type of credentials or tracking information every time you call the Web service. You can accommodate this information by inserting additional parameters into every method. However, this approach raises several problems, including:
The client ...