From: Pradeep Sethi Date: 2006-06-14T16:19:55+09:00 Subject: Re: NewB question on ruby data structure Logan Capaldo wrote: > On Jun 14, 2006, at 2:19 AM, Pradeep Sethi wrote: > >> To Clarify more, How would I get the data "Hello World" out from the >> data structure: >> >>> #>> {http://tempuri.org/}HelloWorldResult="Hello World"> >> >> Thanks, >> >> > > Try using p @result.methods to figure out what the method is called. > Either that or show some more code (where the object gets created). Here is the code. I want to get the value returned by the web service, in this case text "Hello World". see below HelloWorldResult="Hello World" Thanks a lot, ----------- require 'soap/wsdlDriver' RMS_WSDL = 'http://host.com/webservice1/trackermapper/service1.asmx?WSDL' ws = SOAP::WSDLDriverFactory.new(RMS_WSDL).create_rpc_driver puts ws.inspect @result = ws.HelloWorld(nil) puts @result.inspect puts @result.HelloWorldResult --- and the output is # rms_wsdl.rb:16: undefined method `HelloWorldResult' for # (NoMethodError) -- Posted via http://www.ruby-forum.com/.