I am trying to create a WCF client from a shared DLL that has ServiceContract interfaces and WebGet/WebInvoke methods. I am using a WebChannelFactory to create a channel for the services.
I know I can add a “RequestFormat=WebMessageFormat.Json” to every method, but I have a very large number of methods, and it seems like a better idea to just set a default format in the client somewhere.
Any ideas on how to set this? I’ve been looking at WebChannelFactory, WebHttpBinding, OperationContext & Scope, and have found nothing