[Solved] How to call a service from console Application in c#


          HttpWebRequest req = null;
          HttpWebResponse resp = null;
          string baseaddress = "http://deveqtradedb.lazard.com/API.aspx?action=export&entity=global";
         req = (HttpWebRequest)WebRequest.Create(baseaddress);
         req.Method = "POST";
         req.ContentType = "text/xml; encoding = UTF-8";
         resp = req.GetResponse() as HttpWebResponse;
  1. Check Here

    https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse(v=vs.110).aspx

solved How to call a service from console Application in c#