diff options
Diffstat (limited to 'sample/soap/whois.rb')
-rw-r--r-- | sample/soap/whois.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sample/soap/whois.rb b/sample/soap/whois.rb new file mode 100644 index 0000000000..2737e8085e --- /dev/null +++ b/sample/soap/whois.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby + +key = ARGV.shift + +require 'soap/rpc/driver' + +server = 'http://www.SoapClient.com/xml/SQLDataSoap.WSDL' +interface = 'http://www.SoapClient.com/xml/SQLDataSoap.xsd' + +whois = SOAP::RPC::Driver.new(server, interface) +whois.wiredump_dev = STDERR +whois.add_method('ProcessSRL', 'SRLFile', 'RequestName', 'key') + +p whois.ProcessSRL('WHOIS.SRI', 'whois', key) |