//required by the web services designer
private icontainer components = null;
/// <summary>
/// required method for designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void initializecomponent()
{
}
/// <summary>
/// clean up any resources being used.
/// </summary>
protected override void dispose( bool disposing )
{
if(disposing && components != null)
{
components.dispose();
}
base.dispose(disposing);
}
#endregion
[webmethod]
public xmldatadocument getforeignexchangerates()
{
return getxmldoc();
}
[webmethod]
public dataset getforeignexchangeratesdataset()
{
return getxmldoc().dataset;
}
[webmethod]
public string getbankpage()
{
return getwebcontent( "http://www.bank-of-china.com/info/whjrpj.html" );
}
// private methods
private string getwebcontent( string url )
{