tohru
tohru

Reputation: 45

-How to get the currency rate from the web service-

Hiyee,I was trying to use the web service for currency rate to get the rate, althought I have already add web reference to["http://www.webservicex.net/CurrencyConvertor.asmx"] but I still do not know how to retrieve it from there. I'm using asp.net vb. Thanks!...

Upvotes: 1

Views: 2861

Answers (1)

dh.
dh.

Reputation: 1511

If you are using Visual Studio then you can simply right-click your project and choose "add service reference" to your project specifying "http://www.webservicex.net/CurrencyConvertor.asmx" as address and then add code like this

  Dim client = New CurrencyConvertorSoapClient()
  Dim result = client.ConversionRate(Currency.EUR, Currency.USD)
  Console.WriteLine(result)

Upvotes: 2

Related Questions