Using a WSDL File to Make SOAP Calls Easier : SOAP « Network « Ruby






Using a WSDL File to Make SOAP Calls Easier


require 'soap/wsdlDriver'
wsdl = 'http://yourserver.net/quotes.wsdl'
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver

puts "Stock price: %.2f" % driver.getQuote('TR')

 








Related examples in the same category

1.Writing a SOAP Client
2.Writing a SOAP Server