PTS SOAP Interface
On the other hand, there is often the need to access the very same information programmatically, from software and utilities. To aid in that respect, the PTS offers a SOAP interface to the content exported in its pages.
BIG FAT WARNING: the SOAP API is still work in progress, and methods are being added continuously until all information available on the web pages are available also via SOAP. Please hold your breath.
URL and Namespace
http://packages.qa.debian.org/cgi-bin/soap-alpha.cgi is the current URL for the development alpha version of the PTS SOAP API.
As you have guessed, the API is still subject to changes, please test it and send comments to zack. If instead of comments you have bug reports (misbehaving methods, wishlist for missing methods, ...) please use the usual bug submission rules for the PTS.
Eventually, the URL for the stable PTS SOAP API will be http://packages.qa.debian.org/cgi-bin/soap.cgi.
The documentation of the SOAP API can be generated by running epydoc on soap-alpha.cgi:
then have a look into the html/ dir.
A version of the HTML doc updated from time to time is available on the web at http://people.debian.org/~zack/pts/soap/.
If you want to test from the command line, you can use the soap_query.py script shipped with the PTS. The script is self-contained, and does not depend on other parts of the PTS. Here is a proof of concept:
zack@usha:/home/srv/debian/pts/www$ bin/soap_query.py latest_version source=ocaml 3.10.2-3
soap_query.py --help will tell you more.
The DebbugsSoapInterface page contains SOAP client snippets in various languages, they can be easily adapted for the PTS SOAP interface, by using the URL above, and no namespace.