From: "NAKAMURA, Hiroshi" Date: 2003-01-18T03:10:13+09:00 Subject: [ANN] SOAP4R/1.4.8 with WSDL4R/0.0.2 Hi all, SOAP4R/1.4.8 with WSDL4R/0.0.2 is out. http://www.ruby-lang.org/en/raa-list.rhtml?name=soap4r From Release note. This version has these enhancements and bug fixes; * Avoid warnings; * Use Object#class instead of Object#type. * Avoid implicit use a String as a regexp source. * Add wsdlDriver which reads WSDL file and allow client to call procedures. Here is an example to search Google. require 'soap/wsdlDriver' searchWord = ARGV.shift # You must get key from http://www.google.com/apis/ to use Google Web APIs. key = File.open(File.expand_path("~/.google_key")).read.chomp GOOGLE_WSDL = 'http://api.google.com/GoogleSearch.wsdl' # Load WSDL and create driver. google = SOAP::WSDLDriverFactory.new(GOOGLE_WSDL).createDriver # Just invoke! result = google.doGoogleSearch(key, searchWord, 0, 10, false, "", false, "", 'utf-8', 'utf-8') result.resultElements.each do |ele| puts "== #{ele.title}: #{ele.URL}" puts ele.snippet puts end * WSDLDriver client examples of AmazonWebServices, RAA and RNN (Japanese Ruby blog site) are also included in sample/ dir. * Support xmlscan XML processor. * Changed XML processor detection scheme. Search xmlscan, REXML, XMLParser and NQXML in this order. * Rewrite charset handling of XML processor. * If you only use us-ascii and utf-8, all XML processors should work without uconv module. * With xmlscan/0.2 or later, you can handle euc-jp or shift_jis encoded XML instance WITHOUT uconv module. * With other XML processors includes xmlscan/0.1, you need to install uconv module to handle euc-jp or shift_jis encoded XML instance. * cgistub.rb: Overridable response mediatype. There exists a http client which does not accept the mediatype text/xml which is specified in SOAP spec. For example, an i-Mode (smart phone) client does not accept it... You can set response mediatype to 'text/plain' for such client though it violates SOAP spec... * wsdl2ruby: Add --force option to override existing file. * Fixed many bugs. Enjoy. :D Regards, // NaHi