Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1609

Show
Ignore:
Timestamp:
09/03/05 23:44:58 (3 years ago)
Author:
nahi
Message:

I once wrote a sample of session handling for sforce. it may help. closes #135.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sample/wsdl/googleSearch/wsdlDriver.rb

    r1605 r1609  
    1616google = SOAP::WSDLDriverFactory.new(GOOGLE_WSDL).create_rpc_driver 
    1717google.wiredump_dev = STDOUT if $DEBUG 
    18 google.mandatorycharset = 'utf-8' 
    19 result = google.doGoogleSearch( key, word, 0, 10, false, "", false, "", 'utf-8', 'utf-8' ) 
     18google.generate_explicit_type = false 
     19 
     20#result = google.doGoogleSearch( key, word, 0, 10, false, "", false, "", 'utf-8', 'utf-8' ) 
     21result = google.doGoogleSearch( key, word, 0, 10, false, 'countryJP', false, 'lang_ja', 'utf-8', 'cw-8' ) 
     22 
     23exit 
     24 
    2025result.resultElements.each do |ele| 
    2126  puts "== #{html2rd(ele.title)}: #{ele["URL"]}"