using System.IO;
using System.Net;
using System.Xml;
----------------------
private void button2_Click(object sender, EventArgs e)
{
WebRequest webrequest = WebRequest.Create("http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=USD&ToCurrency=INR");
HttpWebResponse response = (HttpWebResponse)webrequest.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
XmlDocument doc = new XmlDocument();
doc.LoadXml(responseFromServer);
string value = doc.InnerText;
MessageBox.Show(value);
reader.Close();
dataStream.Close();
response.Close();
}