The Python Web services developer, Part 3: Web services software repository, Part 2

A Web service for content updating

Return to article

Listing 7b
[uogbuji@borgia code]$ python add_software2.py Saturnalia 1.7
Creator: Chronos@Olympos.gr
Home: http://saturnalia.olympos.gr
Description: One helluva festival
200
OK
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE SOAP-ENV:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ftsoap='http://spam.com/softrepo' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
 <SOAP-ENV:Body>
 <ftsoap:Document uri='/softrepo/incoming/Saturnalia-1.7.xml' imt='text/xml'>PHJkZjpSREYKICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5
bnRheC1ucyMiCiAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEiCiAg
eG1sbnM9Imh0dHA6Ly9uYW1lc3BhY2VzLjRzdWl0ZS5vcmcvd3d3L3NvZnR3YXJlLW1hcCIKPgog
IDxTb2Z0d2FyZSByZGY6SUQ9IlNhdHVybmFsaWEiPgogICAgPGRjOlRpdGxlPlNhdHVybmFsaWE8
L2RjOlRpdGxlPgogICAgPGRjOkNyZWF0b3I+Q2hyb25vc0BPbHltcG9zLmdyPC9kYzpDcmVhdG9y
PgogICAgPEhvbWUgcmRmOnJlc291cmNlPSJodHRwOi8vc2F0dXJuYWxpYS5vbHltcG9zLmdyIi8+
CiAgICA8Q3VycmVudFZlcnNpb24+MS43PC9DdXJyZW50VmVyc2lvbj4KICAgIDxkYzpEZXNjcmlw
dGlvbj5PbmUgaGVsbHV2YSBmZXN0aXZhbDwvZGM6RGVzY3JpcHRpb24+CiAgPC9Tb2Z0d2FyZT4K
PC9yZGY6UkRGPgo=
</ftsoap:Document>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Return to article