Thursday, October 24, 2019

Post data and get jason C#

  string url = "www.YOURL_URL.com";
  string soapResult = "";
                WebClient cl = new WebClient(); // create web client
                var data = cl.DownloadString(url); //    Sending request to find web api REST service resource  using HttpClient 
                JObject currencies = JObject.Parse(data);
                var currency = currencies.SelectToken("TradeLicense.trade_name_en");
                soapResult = currency.ToString();