Are you using WCF?

 

You need to define a data contract  class with a message contract attribute decorating the data you want sent in the SOAP header.

 

an example is available here