I got it working! Using basic authentication doesn’t see to work. However, you can install your own transport object in Python’s xmlrpc.ServerProxy object. I did this with a transport obejct that will send the authentication data in a cookie and now everything works.
If anybody would like that code let me know.
I'm trying to get xmlrpc working with Python. I've tried using just the plain old python XMLRPC stuff but that didn't work. I could connect to the server and call login, but any other method calls resulted in an authentication error.
After reading some other posts on the issue I downloaded egroupware.py from http://www.bitpim.org/pyxr/c/projects/bitpim/src/native/egroupware/egroupware.py.html and tried that. It uses the sessionid and kp3 as the username and password in the URL so Python will pass these as authentication tokens. It does in fact work - e.g. I can see the tokens in the URL and using Ethereal I can see the following conversation with the server:
POST /xmlrpc.php HTTP/1.0
Host: groupware.myhost.org
Authorization: Basic a2ppcXNvYXNpc2huZzMwcm9xNGQwcDFhYzM6YTNhNzI3Mjk0OWY5ODBlZDY1NDAxZTEwMTRjZDYzY2I=
User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)
Content-Type: text/xml
Content-Length: 349
<?xml version='1.0'?>
calendar.bocalendar.search
start
2006-01-01T00:00:00
end
2006-12-31T23:59:60
HTTP/1.1 401
Date: Thu, 09 Nov 2006 22:32:07 GMT
Server: Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.1.4
X-Powered-By: PHP/5.1.2
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
WWW-Authenticate: Basic realm=“eGroupWare xmlrpc”
Set-Cookie: sessionid=deleted; expires=Wed, 09-Nov-2005 22:32:09 GMT; path=/; domain=groupware.myhost.org
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html
but as you can see the authentication still fails even though my login succeeded and sessionid and kp3 are being passed as base64 encoded strings in the Authorization header.
According to the docs here: http://www.egroupware.org/index.php?page_name=wiki&wikipage=xmlrpc2 this should work.
Note: I do have mbstring set up right. Also xmlrpc works with Kontact so I don’t think it a server configuration issue.
Any help???
[/quote]