Hi,

I'm trying to write a little SOAP WSDL client to get a currency
conversion rate. I have tried what is listed below but I get the error
below. I don't know what I'm doing but I've been trying to follow the
pickaxe book on page 252. Any suggestions to get this working?

Thanks,
Peter



## RUBY SCRIPT

require 'soap/wsdlDriver'
require 'cgi'

WSDL_URL = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"

soap = SOAP::WSDLDriverFactory.new(WSDL_URL).createDriver

result = soap.ConversionRate("USD", "CAD")

puts result




## ERROR

Unknown element {http://schemas.xmlsoap.org/wsdl/http/}binding.
Unknown element {http://schemas.xmlsoap.org/wsdl/http/}operation.
Unknown element {http://schemas.xmlsoap.org/wsdl/http/}urlEncoded.
Unknown element {http://schemas.xmlsoap.org/wsdl/mime/}mimeXml.
Unknown element {http://schemas.xmlsoap.org/wsdl/http/}binding.
Unknown element {http://schemas.xmlsoap.org/wsdl/http/}operation.
Unknown element {http://schemas.xmlsoap.org/wsdl/mime/}content.
Unknown element {http://schemas.xmlsoap.org/wsdl/mime/}mimeXml.
Unknown element {http://schemas.xmlsoap.org/wsdl/http/}address.
Unknown element {http://schemas.xmlsoap.org/wsdl/http/}address.
soap_currency_conversion.rb:8: undefined method `ConversionRate' for
#<SOAP::WSDLDriver:0x13202b4> (NoMethodError)