public CoreWCF.Channels.Message Untyped_Method(CoreWCF.Channels.Message msgIn) { CoreWCF.Channels.MessageVersion mv = OperationContext.Current.IncomingMessageHeaders.MessageVersion; string faultToThrow = "Test fault thrown from a service"; if (msgIn != null) { throw new FaultException <string>(faultToThrow); } return(Message.CreateMessage(mv, MessageFault.CreateFault(new FaultCode("Sender"), new FaultReason("Unspecified ServiceModel Fault"), "unspecified", new System.Runtime.Serialization.DataContractSerializer(typeof(string)), "", ""), "")); }