Access a Internet URL from my web application

  • Thread starter Thread starter Techeek
  • Start date Start date
T

Techeek

How to access a Internet URL from a web application ? This web request will
give
XML output. How can I read that output??

Can anyone help me??
 
How to access a Internet URL from a web application ? This web request
will
give XML output. How can I read that output??

string strXML = String.Empty;
using (WebClient objWebClient = new WebClient())
{
using (StreamReader objStreamReader = new
StreamReader(objWebClient.OpenRead("https://www.website.com/xmlpage.aspx")))
{
strXML = objStreamReader.ReadToEnd();
objStreamReader.Close();
}
}
 
Back
Top