Date: 26.10.2019



string soapResult = string.Empty;
try
{
using (WebResponse webResponse = webRequest.EndGetResponse(asyncResult))
{
using (StreamReader rd = new StreamReader(webResponse.GetResponseStream()))
{
soapResult = rd.ReadToEnd();
}
}
}
catch (WebException wex)
{
soapResult = new StreamReader(wex.Response.GetResponseStream())
.ReadToEnd();
}
return soapResult;