From: "Mauricio Fernández" Date: 2005-08-25T01:08:00+09:00 Subject: Re: Searching Google vith SOAP4R On Wed, Aug 24, 2005 at 09:52:32PM +0900, Dalibor Sramek wrote: > Does anybody use SOAP4R to access Google search service? > > I do not want to dive too deep into SOAP peculiarities. So I just tried to > make Pickaxe examples to work. I am getting: > : No Deserializer found to deserialize a ':restrict' using encoding style > 'http://schemas.xmlsoap.org/soap/encoding/'. (SOAP::FaultError) > > I installed the newest SOAP4R version but Google samples included in the > distribution crashed on various errors too. batsman@tux-chan:/tmp$ cat ggl.rb require 'soap/wsdlDriver' g = SOAP::WSDLDriverFactory.new('http://api.google.com/GoogleSearch.wsdl').create_rpc_driver g.generate_explicit_type = true google_key = File.read(File.join(ENV["HOME"], ".google_key")) r = g.doGoogleSearch(google_key, "ruby", 0, 5, false, "", false, "", "", "" ) puts "About #{r.estimatedTotalResultsCount} results" puts r.resultElements.each do |e| puts "#{e.title}: #{e['URL']}" puts "#{e.snippet}" puts end batsman@tux-chan:/tmp$ RUBYOPT= ruby ggl.rb About 2570000 results Ruby Home Page: http://www.ruby-lang.org/ The Object-Oriented Programming Language Ruby Ruby: Programmers' Best Friend ...
security@ruby-lang.org is a private ML, and anyone can post to it without ... Ruby Central: http://www.rubycentral.com/ Ruby resource: One-click Windows installer; online copy of Programming Ruby: The
Pragmatic Programmer's Guide. [Open Publication License] Programming Ruby: The Pragmatic Programmer's Guide: http://www.rubycentral.com/book/ Full online HTML text at Ruby Central, with download link. [Open Content, Open
Publication License] Ruby on Rails: http://www.rubyonrails.org/ Rails is a full-stack, open-source web framework in Ruby for writing real-world
applications with joy and less code than most frameworks spend doing XML ... Dining Out at Ruby Tuesday Restaurant: http://www.rubytuesday.com/ Awesome Food. Serious Salad Bar. Dining out at Ruby Tuesday features popular
choices and a wide variety sure toappeal to anyone's appetite. -- Mauricio Fernandez