[imp] Passing auth credentials to compose
MIlos Prudek
prudek at bvx.cz
Tue Jun 6 09:21:18 PDT 2006
> > OK, I discovered a howto in the Wiki. http://wiki.horde.org/WSDLHowTo.
> > All I need to do is to send XML-RPC request from my external application
> > (Zope) to /horde/rpc.php, correct?
>
> Correct.
Thank you.
The following test script works perfectly from Python (Zope):
def getStateName(self, number):
import xmlrpclib
server_url="http://betty.userland.com"
server=xmlrpclib.Server(server_url)
return server.examples.getStateName(number)
It returns Alabama for 01 and Wyoming for 50.
Based on that test script I wrote this stanza:
def getAuth(self, user, pwd):
import xmlrpclib
server_url="http://www.orl.cz/horde/rpc.php"
server=xmlrpclib.Server(server_url)
return server.imp.authenticate(user,pwd)
Is my stanza OK?
It returns two errors: "multiple elements on top level" and "Syntax error at
line 2: multiple elements on top level"
--
Milos Prudek
More information about the imp
mailing list