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

root/tags/RELEASE_1_4_4/sample/whois.rb

Revision 457, 0.5 kB (checked in by nahi, 7 years ago)

Use environment variable HTTP_PROXY or http_proxy for http proxy.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to author date id revision
Line 
1 #!/usr/bin/env ruby
2
3 key = ARGV.shift
4
5 require 'soap/driver'
6
7 server = 'http://www.SoapClient.com/xml/SQLDataSoap.WSDL'
8 interface = 'http://www.SoapClient.com/xml/SQLDataSoap.xsd'
9 logger = nil            # Devel::Logger.new( STDERR )
10 wireDumpDev = nil       # STDERR
11 proxy = ENV[ 'HTTP_PROXY' ] || ENV[ 'http_proxy' ]
12
13 whois = SOAP::Driver.new( logger, $0, interface, server, proxy )
14 whois.setWireDumpDev( wireDumpDev )
15 whois.addMethod( 'ProcessSRL', 'SRLFile', 'RequestName', 'key' )
16
17 p whois.ProcessSRL( 'WHOIS.SRI', 'whois', key )
Note: See TracBrowser for help on using the browser.