summaryrefslogtreecommitdiff
path: root/sample/soap/exchange/exchange.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/soap/exchange/exchange.rb')
-rw-r--r--sample/soap/exchange/exchange.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/sample/soap/exchange/exchange.rb b/sample/soap/exchange/exchange.rb
deleted file mode 100644
index 00f930deb8..0000000000
--- a/sample/soap/exchange/exchange.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-require 'soap/rpc/driver'
-
-ExchangeServiceNamespace = 'http://tempuri.org/exchangeService'
-
-class Exchange
- ForeignServer = "http://services.xmethods.net/soap"
- Namespace = "urn:xmethods-CurrencyExchange"
-
- def initialize
- @drv = SOAP::RPC::Driver.new(ForeignServer, Namespace)
- @drv.add_method("getRate", "country1", "country2")
- end
-
- def rate(country1, country2)
- return @drv.getRate(country1, country2)
- end
-end