Adding custom http header to all WCF requests
Eric Phan |
Thursday 03 June 2010 at 11:14 PM I needed to add a customer http header to the outgoing request of a web service call (for authentication purposes). With old web services it was easy to do this, but with WCF it’s a bit tricker. The good thing is that WCF is *very* extensible.
To do this, we need to create a custom WCF behavior and message inspector.
The solution file is available in the resources section of the post.
.NET 3.5,
BehaviorExtensionElement,
HTTP Headers,
WCF,
Web Services in
Development 