Ejemplo n.º 1
0
        public string MakeServiceCall()
        {
            var client   = serviceClientFactory.CreateChannel();
            var response = "";

            try
            {
                client.Open();

                response = client.GetData();

                client.Close();

                //return response;
            }
            catch (Exception e)
            {
                client.Abort();
            }
            return(response);
        }