Differences between revisions 1 and 2
Revision 1 as of 2007-06-24 11:56:34
Size: 479
Editor: ?BastianVenthur
Comment:
Revision 2 as of 2007-06-24 12:11:30
Size: 1388
Editor: ?BastianVenthur
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
 get_status:: returns foo  get_status(bugnumber [, bugnumber]*):: returns the status if the given bugs
Line 18: Line 18:

== Examples ==

=== Python ===
{{{
#!python

#!/usr/bin/env python


import SOAPpy


#url = 'http://bugs.donarmstrong.com/cgi-bin/soap.cgi'
url = 'http://bugs.debian.org/cgi-bin/soap.cgi'
namespace = 'Debbugs/SOAP'
server = SOAPpy.SOAPProxy(url, namespace)

#server.config.dumpSOAPOut = 1
#server.config.dumpSOAPIn = 1


def getStatus(*args):
        server.soapaction = '%s#get_status' % namespace
        result = server.get_status(*args)
        return result


def getBugs(*args):
        server.soapaction = '%s#get_bugs' % namespace
        result = server.get_bugs(*args)
        return result



print getStatus(409909, 419920, 421581, 417044, 397993, 419411, 412279, 342914, 417219, 418384, 350141, 381680, 419306)
print getStatus(419306)

#s = getBugs("package", "gtk-qt-engine")
#getStatus(list(s))

}}}

Debbugs' SOAP Interface Documentation

Please help to keep this documentation up to date!

URL and Namespace

http://bugs.debian.org/cgi-bin/soap.cgi is the official SOAP interface for Debian's BTS.

http://bugs.donarmstrong.com/cgi-bin/soap.cgi is the development version.

The namespace is Debbugs/SOAP

Available methods for bugs.debian.org

get_status(bugnumber [, bugnumber]*)
returns the status if the given bugs
get_bugs
returns bar

Available methods for bugs.donarmstrong.com

Examples

Python

   1 #!/usr/bin/env python
   2 
   3 
   4 import SOAPpy
   5 
   6 
   7 #url = 'http://bugs.donarmstrong.com/cgi-bin/soap.cgi'
   8 url = 'http://bugs.debian.org/cgi-bin/soap.cgi'
   9 namespace = 'Debbugs/SOAP'
  10 server = SOAPpy.SOAPProxy(url, namespace)
  11 
  12 #server.config.dumpSOAPOut = 1
  13 #server.config.dumpSOAPIn = 1
  14 
  15 
  16 def getStatus(*args):
  17         server.soapaction = '%s#get_status' % namespace
  18         result = server.get_status(*args)
  19         return result
  20 
  21 
  22 def getBugs(*args):
  23         server.soapaction = '%s#get_bugs' % namespace
  24         result = server.get_bugs(*args)
  25         return result
  26 
  27 
  28 
  29 print getStatus(409909, 419920, 421581, 417044, 397993, 419411, 412279, 342914, 417219, 418384, 350141, 381680, 419306)
  30 print getStatus(419306)
  31 
  32 #s = getBugs("package", "gtk-qt-engine")
  33 #getStatus(list(s))