Rajveer singh

Rajveer singh

  • 800
  • 1k
  • 251k

How to solve The operation has timed out

Feb 25 2015 12:09 AM
HI all,
 
         I face this problem during fetch data from other http url by asp.net  
 
here
//HttpWebRequest wb Request=System.Net.HttpVersion.Version10;
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("https://rtionline.gov.in/webservice/website_display.php?servicecode=sfIMQjFojvyPFNy5y4u4JbrzHY9kOikC3%2F7wv1eUWLU%3D&un=Oe9nk14AhqGUGGSPv%2Fnjcb7epVva7cauUx21oOYROBw%3D&pd=HlOIa%2B%2BDDBa6ncUlpce6ehhIxvrx19iNqAlGx7gLNNYPP9NDjD2qGHUG7MuZjzAiufiiMEVt6hy5legUphkXRw%3D%3D");   
XmlElement parentelement = xmldoc.CreateElement("webservice/RTI");
XmlElement sno = xmldoc.CreateElement("sno");
XmlElement requestreg_no = xmldoc.CreateElement("[requestreg_no]");
XmlElement request_category = xmldoc.CreateElement("[request_category]");
XmlElement request = xmldoc.CreateElement("request");
XmlElement request_doc_url = xmldoc.CreateElement("request_doc_url");
XmlElement request_recvd_date = xmldoc.CreateElement("request_recvd_date");
XmlElement request_reply = xmldoc.CreateElement("request_reply");
XmlElement request_reply_doc_url = xmldoc.CreateElement("request_reply_doc_url");
XmlElement appealreg_no = xmldoc.CreateElement("appealreg_no");
XmlElement appeal = xmldoc.CreateElement("appeal");
XmlElement appeal_doc_url = xmldoc.CreateElement("appeal_doc_url");
XmlElement appeal_recvd_date = xmldoc.CreateElement("appeal_recvd_date");
XmlElement appeal_reply = xmldoc.CreateElement("appeal_reply");
XmlElement appeal_reply_doc_url = xmldoc.CreateElement("appeal_reply_doc_url");
parentelement.AppendChild(sno);
parentelement.AppendChild(requestreg_no);
parentelement.AppendChild(request_category);
parentelement.AppendChild(request);
parentelement.AppendChild(request_doc_url);
parentelement.AppendChild(request_recvd_date);
parentelement.AppendChild(request_reply);
parentelement.AppendChild(request_reply_doc_url);
parentelement.AppendChild(appealreg_no);
parentelement.AppendChild(appeal);
parentelement.AppendChild(appeal_doc_url);
parentelement.AppendChild(appeal_recvd_date);
parentelement.AppendChild(appeal_reply);
parentelement.AppendChild(appeal_reply_doc_url);
xmldoc.DocumentElement.AppendChild(parentelement);
xmldoc.Save(Server.MapPath("Sample.xml"));
return xmldoc;
 

Answers (4)