The ICallContextInitializer located in System.ServiceModel.Dispatcher namespace is used to initialize and restore the thread context (thread local storage, CallContext, etc.) before and after the operation is invoked on the server side. By default, WCF will not do it for you unless you explicitly add this behavior.
Symptom A while ago, in one of our systems which sends text messages over WCF, we encountered a mysterious exception: System.Text.EncoderFallbackException: Unable to translate Unicode character \uD8B8 at index XX to specified code
In this post I’m going to explain what is the SOAP Fault, and how it should be handled. There are 3 types of SOAP messages: Request Reply Fault when the client receives a fault message, it indicates that an error occurred on the server side which WCF translated to the client as a fault. It […]
IOperationBehavior which is located in System.ServiceModel.Description assembly allows to extend the behaviors of operations for both the client and the server sides.
Overview Services exist in order to serve external clients. They do so by exposing a wide range of external interfaces which are later used by the clients to interact with the service. After initial deployment, and potentially several times during their lifetime, services may need to be changed for a variety of reasons, such as […]