From: petermichaux@... Date: 2006-03-22T15:08:50+09:00 Subject: Re: help with a simple SOAP WSDL client? anyone? petermichaux@gmail.com wrote: > 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 > # (NoMethodError)