File: minimal-soap.rb

package info (click to toggle)
apt-listbugs 0.0.89
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 776 kB
  • ctags: 55
  • sloc: ruby: 1,532; sh: 174; makefile: 49
file content (15 lines) | stat: -rwxr-xr-x 556 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/ruby
# use raw soap interface to create a minimal code that works.
# 15 Jul 2007: created as an example to paste into http://wiki.debian.org/DebbugsSoapInterface documentation.
require 'soap/rpc/driver'

host = "bugs.debian.org"
port = 80
server="http://#{host}:#{port}/cgi-bin/soap.cgi"
ns = 'Debbugs/SOAP/'
drv = SOAP::RPC::Driver.new(server, ns)
drv.wiredump_dev = STDOUT if $DEBUG
drv.add_method('get_status','bugnumber')
drv.add_method('get_bugs','keyparam')

p drv.get_status(drv.get_bugs(['package', 'pbuilder', 'severity', 'wishlist']))