WCF: Use a Message Contract to make a Soap Header
- by Vaccano
I need to add a soap header to my web service. I plan to use this to validate my clients (Windows Mobile Devices).
I found this link: http://www.c-sharpcorner.com/UploadFile/rog_21/soapheaders05172007120046PM/soapheaders.aspx
Which is exactly what I want to do. But it is not written for WCF.
I have done some research and I seem to be paralyzed by the number of options.
I basically want to add a simple header to my soap object that will be a user name and password. The client does not use WCF, so the soap header needs to just be a normal soap header.
Any Sample code or shoves in the right direction would be appreciated.