Displaying 2 results from an estimated 2 matches for "current_currency".
2006 Mar 28
1
What if a webservice is not available = "execution expired" error
...service.default_encodingstyle =
SOAP::EncodingStyle::ASPDotNetHandler::Namespace
service.add_method_with_soapaction("ConversionRate",
"http://www.webserviceX.NET/ConversionRate", "FromCurrency",
"ToCurrency")
rate = service.ConversionRate("CAD",current_currency).to_f
rescue
sprintf("$%0.2f CAN", can_amt)
else
case current_currency
when "USD"
sprintf("$%0.2f US", can_amt*rate)
when "GBP"
sprintf("?%0.2f", can_amt*rate)
when "EUR"
sprintf("?%0.2f", can_amt*rate)
w...
2006 Jun 18
13
Currency calculation
I''m thinking of experimenting with some currency conversion. However,
I''d like the conversions to be in synch with the current rates.
Anyone know (and this maybe out in left field) if there is some online
(perhaps xml) or other data stream I can connect with in my code to
output values based on user selection ?
TIA
Stuart