Displaying 1 result from an estimated 1 matches for "xml2obj".
Did you mean:
yaml2obj
2006 Jan 26
3
Calling a SOAP service from within a Rails controller
...gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"
drv = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
drv.wiredump_dev = STDOUT if $DEBUG
dwml = drv.NDFDgen(lat, lon, ''time-series'', starter, ender, params)
puts dwml
require ''xsd/mapping''
data = XSD::Mapping.xml2obj(dwml).data
**********************************************************************************************
However, when I try to call the same from within a ruby controller, I get:
SOAP::HTTPStreamError in Weather_map#data
502: Bad Gateway
The code in my controller is:
************************...