public void ApplyClientBehavior(System.ServiceModel.Description.ServiceEndpoint endpoint, ClientRuntime clientRuntime) { EmptyElementInspector inspector = new EmptyElementInspector(); clientRuntime.MessageInspectors.Add(inspector); }