From: Logan Capaldo Date: 2006-06-14T15:42:02+09:00 Subject: Re: NewB question on ruby data structure 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). > Pradeep Sethi wrote: >> Hi, >> >> I am trying to parse variables from a simple data structure/ >> class.. I am >> using a web service and it returns a data structure. Here is the >> code: >> >> @result = ws.HelloWorld(nil) >> puts @result.inspect # line 15 >> puts @result.HelloWorldResult # line 16 >> >> #> {http://tempuri.org/}HelloWorldResult="Hello World"> # line 15 >> rms_wsdl.rb:16: undefined method `HelloWorldResult' for >> # (NoMethodError) >> >> I am sure, I am missing something very basic. Any help would be >> greatly >> appreciated. >> >> Thanks in advance. >> >> Prad > > > -- > Posted via http://www.ruby-forum.com/. >