开发者

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

开发者 https://www.devze.com 2022-12-19 06:12 出处:网络
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开发者_开

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

精彩评论

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