A web service that I'm trying to consume requires that I add x-api-key to the HTTP header of the request. Is it possible to add this new header to the request using the web.config? I've tried to add the header element to the endpoint like the example below, but keep getting 403-Forbidden:
<endpoint address="webserviceurl"
behaviorConfiguration="myBehavior" binding="customBinding"
bindingConfiguration="myBinding" contract="myContract"
name="serviceName">
<headers>
<x-api-key xmlns="webserviceurl">"key"</x-api-key>
</headers>
</endpoint>