Friday, November 28, 2008

Currency Conversion Web Service with Asp .Net

I stumbled upon a excellent Currency Converter Web Service

So thought of blogging on consuming a web service with Asp .Net.

Start a new Asp .Net project and Add web reference to the above mentioned web service.

Here is the code for invoking the ConversionRate method.

CurrencyConvertor.CurrencyConvertor cc = new CurrencyConvertor.CurrencyConvertor();
double dblConv;
protected void Page_Load(object sender, EventArgs e)

protected void btnUSDollar_Click(object sender, EventArgs e)
dblConv = cc.ConversionRate(CurrencyConvertor.Currency.USD,
lblConversion.Text = dblConv.ToString();
A few useful web services
Related Blog
.Net Remoting Walkthrough

1 comment:

  1. hi sir...i am getting the exception "WebException was unhandled by the user code. The request failed with HTTP status 417: Expectation failed."..How can i resolve this exception..give me your valuable suggestions...thanks in advance..