private static void RetrieveData() { Console.Write("\nInsert the key to retrieve the data: "); try { byte[] data = currentBroker.RetrieveData(Console.ReadLine()); string stringData = Encoding.UTF8.GetString(data); Console.WriteLine("\nRetrieved data - {0}!", stringData); } catch (FaultException <BrokerExceptionFaultContract> e) { Console.WriteLine("\n" + e.Detail.Message); } }