File: minimal-soap.rb

package info (click to toggle)
apt-listbugs 0.1.8%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 924 kB
  • sloc: ruby: 1,968; sh: 173; makefile: 47
file content (15 lines) | stat: -rwxr-xr-x 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/ruby1.8
# 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']))