WCF: Use a Message Contract to make a Soap Header

Posted by Vaccano on Stack Overflow See other posts from Stack Overflow or by Vaccano
Published on 2010-04-30T19:09:06Z Indexed on 2010/04/30 19:17 UTC
Read the original article Hit count: 390

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf