XmlRpc doesn't work

[email protected]
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <OF9FB1FD03.65F4C95A-ONC1256E3C.006819CD-C1256E3C.006ABA81@wgkk.sozvers.at>
Hi!

I tried to get my feet wet with XmlRpc today, but I didn't get very far :-(
All I got was an Apache Internal Server Error and an log entry in
data/error.log

I'm pretty new to MoinMoin and probably I shouldn't have started with the
bleeding edge tar file, but where's the fun if every just works?

Result of http://linsrv1/wiki/moin.cgi/?action=xmlrpc2 in data/error.log:

Traceback (most recent call last):
  File "/usr/share/moin/cgi-bin/moin.cgi", line 33, in ?
    request.run()
  File "/usr/lib/python2.3/site-packages/MoinMoin/request.py", line 345, in
run
    xmlrpc2(self)
  File "/usr/lib/python2.3/site-packages/MoinMoin/wikirpc.py", line 431, in
xmlrpc2
    XmlRpc2(request).process()
  File "/usr/lib/python2.3/site-packages/MoinMoin/wikirpc.py", line 354, in
process
    params, method = xmlrpclib.loads(data)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1013, in loads
    p.close()
  File "/usr/lib/python2.3/xmlrpclib.py", line 531, in close
    self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: no element found: line 1, column 0


Result of http://linsrv1/wiki/moin.cgi/?test

MoinMoin CGI Diagnosis
======================

Package "MoinMoin" successfully imported.

Release 1.2
Revision 1.181
Python version 2.3.3 (#1, Feb 13 2004, 18:44:54)
[GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)]
Python installed to /usr
PyXML is installed
Python Path:
   /usr/share/moin/cgi-bin
   /usr/lib/python23.zip
   /usr/lib/python2.3
   /usr/lib/python2.3/plat-linux2
   /usr/lib/python2.3/lib-tk
   /usr/lib/python2.3/lib-dynload
   /usr/lib/python2.3/site-packages
   /usr/lib/portage/pym
   data
Checking directories...
    data directory tests OK (set to '/usr/share/moin/cgi-bin/data')
    text directory tests OK (set to '/usr/share/moin/cgi-bin/data/text')
    user directory tests OK (set to '/usr/share/moin/cgi-bin/data/user')
    backup directory tests OK (set to
'/usr/share/moin/cgi-bin/data/backup')

Server Environment:
    ONLY AVAILABLE FOR LOCAL REQUESTS ON THIS HOST!
Unit Tests:
runTest (MoinMoin._tests.test_Page.existsTestCase) ... ok
runTest (MoinMoin._tests.test_PageEditor.expand_variablesTestCase) ... ok
runTest (MoinMoin._tests.test_marshal.MarshalTestCase) ... ok
runTest (MoinMoin._tests.test_parser_wiki.WikiMacroTestCase) ... ok
runTest (MoinMoin._tests.test_parser_wiki.PageLinkTestCase) ... ok
runTest (MoinMoin._tests.test_parser_wiki.InlineMarkupTestCase) ... ok
runTest (MoinMoin._tests.test_user.encodePasswordTestCase) ... ok
runTest (MoinMoin._tests.test_util_mail.decodeSpamSafeEmailTestCase) ... ok
runTest (MoinMoin._tests.test_util_web.makeSelectionTestCase) ... ok
runTest (MoinMoin._tests.test_util_web.makeQueryStringTestCase) ... ok
runTest (MoinMoin._tests.test_widget_html.CompositeElementTestCase) ... ok
runTest (MoinMoin._tests.test_widget_html.RawTestCase) ... ok
runTest (MoinMoin._tests.test_widget_html.EmptyElementTestCase) ... ok
runTest (MoinMoin._tests.test_widget_html.AttrTestCase) ... ok
runTest (MoinMoin._tests.test_widget_html.TextTestCase) ... ok
runTest (MoinMoin._tests.test_wikiacl.parsingTestCase) ... ok
runTest (MoinMoin._tests.test_wikimacro.NormalMacroTestCase) ... ok
runTest (MoinMoin._tests.test_wikiutil.isTemplatePageTestCase) ... ok
runTest (MoinMoin._tests.test_wikiutil.isFormPageTestCase) ... ok

----------------------------------------------------------------------
Ran 19 tests in 0.097s

OK



cu andreas





-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
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.