private void ReplaceFormatterBehavior(OperationDescription operationDescription, ServiceEndpoint endpoint)
 {
     if (operationDescription.Behaviors.Find<XmlRpcOperationFormatterBehavior>() == null)
     {
         XmlRpcOperationFormatterBehavior formatterBehavior =
             new XmlRpcOperationFormatterBehavior(
               operationDescription.Behaviors.Find<DataContractSerializerOperationBehavior>(),
               operationDescription.Behaviors.Find<XmlSerializerOperationBehavior>());
         operationDescription.Behaviors.Remove<DataContractSerializerOperationBehavior>();
         operationDescription.Behaviors.Remove<XmlSerializerOperationBehavior>();
         operationDescription.Behaviors.Add(formatterBehavior);
     }
 }
 private void ReplaceFormatterBehavior(OperationDescription operationDescription, ServiceEndpoint endpoint)
 {
     if (operationDescription.Behaviors.Find<XmlRpcOperationFormatterBehavior>() == null)
     {
         XmlRpcOperationFormatterBehavior formatterBehavior = 
             new XmlRpcOperationFormatterBehavior(
               operationDescription.Behaviors.Find<DataContractSerializerOperationBehavior>(),
               operationDescription.Behaviors.Find<XmlSerializerOperationBehavior>());
         operationDescription.Behaviors.Remove<DataContractSerializerOperationBehavior>();
         operationDescription.Behaviors.Remove<XmlSerializerOperationBehavior>();
         operationDescription.Behaviors.Add(formatterBehavior);
     }
 }