I used following code to access a service hosted in https. The out put I need to process is a xml document which takes too much time (30 seconds) after application being idle for more than 10 minutes. Please Help me finding the issue with this.
public LBSLocation GetLBSLocationInfo(string mobileNo)
{
LBSLocation location = new LBSLocation();
try
{
String URL ="https://125.214.169.85/gmlc/legacy?classID=web_engine_v2&methodID=Handler&username=abc&password=1234ff&clientcode=ABB&phoneno=77 7733773"
System.Net.ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(RemoteCertificateValidationCallback);
HttpWebResponse response = rq.GetResponse() as HttpWebResponse;
using (Stream responseStream = response.GetResponseStream())
{
XmlTextReader reader = new XmlTextReader(responseStream);
doc.Load(reader);
Using a binary XML format generally reduces the verbosity of XML ... of reduced file size, without the advantage of decreased parsing time or random access.
Bookmarks