Adding custom http header to all WCF requests
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.
Read More...
Read the complete post at http://ericphan.info/blog/2010/6/3/adding-custom-http-header-to-all-wcf-requests.html