logo       

project.newDocument not working?: msg#00012

Subject: project.newDocument not working?
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
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe