开发者

-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 d开发者_开发问答o not know how to retrieve it from there. I'm using asp.net vb. Thanks!...


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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜