var res1 = await dataRequest.GetResponseAsync(); very slow .(2 mintues)
var dataRequest = HttpWebRequest.Create(serverUri + "/UsrGetUnityUserTickets/GetUnityUserTickets" + "?Data=" + jsonData) as HttpWebRequest;
dataRequest.Method = "GET"; dataRequest.Accept = "application/atom+xml"; dataRequest.ContentLength = 0; dataRequest.ContentType = "application/atom+xml;type=entry"; dataRequest.KeepAlive = false; dataRequest.CookieContainer = bpmCookieContainer;
dataRequest.Proxy = System.Net.WebRequest.DefaultWebProxy;
var res1 = await dataRequest.GetResponseAsync();
using (var dataResponse = (HttpWebResponse)res1)
{
getting very slow from res1 .
Like
Dear Satyanarayana Pati,
The slowness is most likely caused by usage of proxy. Please try to exclude the following line and check speed:
dataRequest.Proxy = System.Net.WebRequest.DefaultWebProxy;
Regards,
Anastasia
Dear Satyanarayana,
Based on your screenshot you have not removed the proxy usage. Please remove it and try again.
Nevertheless, the speed is also directly depending on the number of records retrieved. In case you have lots of records, the response will take some time.
Regards,
Anastasia
Hi Anastasia Botezat,
if i add/remove dataRequest.Proxy = System.Net.WebRequest.DefaultWebProxy; there was no change in Responce time.
still getting late responce in dev environment this service out of five services . but perfectly work in Production in all services .
Can you please suggest .
Satyanarayana Pati,
Please catch the request with fiddler and compare it with the ones that work promptly. If there are no difference between them, then please debug the service. Probably it selects big amount of data or does a lot of calculations.