Source

main / Source / WebService / Web.Admin / Repositories / MerritRepository.cs

Diff from to

Source/WebService/Web.Admin/Repositories/MerritRepository.cs

                 dataStream.Write(buffer, 0, buffer.Length);
                 dataStream.Close();
 
-                //Trace.TraceInformation("Getting Response");
+                Trace.TraceInformation("Getting Response");
 
                 httpResponse = (HttpWebResponse)httpRequest.GetResponse();
 
-                ////Trace.TraceInformation("Received Response");
+                Trace.TraceInformation("Received Response");
             }
             catch (WebException webException)
             {
                 httpResponse = (HttpWebResponse)webException.Response;
 
-                //Trace.TraceInformation("WebException with Status Code :" + httpResponse.StatusCode);
+                Trace.TraceInformation("Received WebException with Status Code :" + httpResponse.StatusCode);
 
                 if (httpResponse.StatusCode == HttpStatusCode.Unauthorized)
                 {
                 && httpResponse.StatusCode != HttpStatusCode.Unauthorized
                 && httpResponse.StatusCode != HttpStatusCode.NotFound)
             {
-                //Trace.TraceInformation("Network exception occurred.");
+                Trace.TraceInformation("Network exception occurred with Status Code : ." + httpResponse.StatusCode);
 
                 return "false|Network Exception";
                 //throw new FaultException<MerritResponseFault>(new MerritResponseFault() { Message = "Network Exception" });
             }
 
-            //Trace.TraceInformation("Getting response stream.");
+            Trace.TraceInformation("Getting response stream.");
 
             dataStream = httpResponse.GetResponseStream();
             reader = new StreamReader(dataStream);
             dataStream.Close();
             httpResponse.Close();
 
-            //Trace.TraceInformation("Actual Response as string : " + restResponse);
-
             // Get Identifier from the response.
             return "true|" + restResponse.Substring(restResponse.IndexOf("ark:")).Trim();
         }