diff --git a/z01_WinAPP/Service/webRequestSvc.cs b/z01_WinAPP/Service/webRequestSvc.cs
index cf8da19..1b27b2c 100644
--- a/z01_WinAPP/Service/webRequestSvc.cs
+++ b/z01_WinAPP/Service/webRequestSvc.cs
@@ -149,24 +149,24 @@ namespace tpDomeWinAPP.Service
String encoded = System.Convert.ToBase64String(System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes(username + ":" + password));
String API_Url = urlString;
- //HttpWebRequest Postrequest = (HttpWebRequest)WebRequest.Create(API_Url);
- //Postrequest.Method = "POST";
- //Postrequest.Headers.Add("Authorization", "Basic " + encoded);
- //Postrequest.PreAuthenticate = true;
+ HttpWebRequest Postrequest = (HttpWebRequest)WebRequest.Create(API_Url);
+ Postrequest.Method = "POST";
+ Postrequest.Headers.Add("Authorization", "Basic " + encoded);
+ Postrequest.PreAuthenticate = true;
- //using (var streamWriter = new StreamWriter(Postrequest.GetRequestStream()))
- //{
- // string json = "";
+ using (var streamWriter = new StreamWriter(Postrequest.GetRequestStream()))
+ {
+ string json = "";
- // streamWriter.Write(json);
- //}
+ streamWriter.Write(json);
+ }
- //HttpWebResponse response = (HttpWebResponse)Postrequest.GetResponse();
- //var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
+ HttpWebResponse response = (HttpWebResponse)Postrequest.GetResponse();
+ var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
XmlDocument xmlDoc = new XmlDocument();
- //xmlDoc.LoadXml(responseString);
- xmlDoc.Load("N4v1021.xml");//N4v1021
+ xmlDoc.LoadXml(responseString);
+ //xmlDoc.Load("N4v1021.xml");//N4v1021
//xmlDoc.Save("N4.xml");