Hello,
I'm trying to test xml-rpc facilities, but it seems I'm getting into troubles.
I'm using Python 2.3 & xmlrpclib.py from OGo website. Trying to run following
example from XML-RPC Handbook (31 july 2003)
#!/usr/bin/env python
import xmlrpclib
server = xmlrpclib.Server('http://localhost:2001', login='lucabu', password='xxxxx')
result = server.project.newDocument(
"P10690", "/newfile.txt", "Inhalt",
{
'NSFileSubject' : "Titel",
}
)
I get the error:
Traceback (most recent call last):
File "./test.py", line 6, in ?
{
File "/usr/lib/python2.3/xmlrpclib.py", line 829, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.3/xmlrpclib.py", line 995, in __request
verbose=self.__verbose
File "/usr/lib/python2.3/xmlrpclib.py", line 866, in request
return self.parse_response(h.getfile())
File "/usr/lib/python2.3/xmlrpclib.py", line 915, in parse_response
return u.close()
File "/usr/lib/python2.3/xmlrpclib.py", line 579, in close
raise apply(Fault, (), self._stack[0])
xmlrpclib.Fault: <Fault 0: 'ObjcRuntimeException: SkyFSFileManager (instance)
does not recognize createDocumentAtPath:contents:attributes:'>
Obviously that file isn't created. Is the example a working one, or xmlrpcd is
broken for this method?
Thanks, Luca.
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.