[Zope] xml-rpc problem

Alexis Roda arv@si.urv.es
Thu, 29 May 2003 18:20:59 +0200


Hi again,
finally I've got Zope working with COM, thanks to Andy McKay, Volker
Wend and Dmitry Dembinsky.

I have written an external method to convert word/excel documents to
PDF. This external method is stored on our windows server, and it runs
fine. My problem is that, if I run it through xml-rpc from our linux
server, it works only if I have run the windows external method first.
My english is not very good, so here's an example of what I mean:

I start both servers:

first I access http://linuxserver/some/dir/word2pdf it fails with
TypeError, too many arguments. Here word2pdf is an external method that
runs the window's word2pdf through xml-rpc

if I access http://windowserver/office/word2pdf it works fine every time

now, if I access http://linuxserver/some/dir/word2pdf it works ok

Here's the traceback:

Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in
publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
    (Object: proves)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in
publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: test)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in
call_object
    (Object: test)
  File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 252,
in __call__
    (Object: test)
  File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 283,
in _bindAndExec
    (Object: test)
  File /usr/lib/zope/lib/python/Products/PythonScripts/PythonScript.py,
line 302, in _exec
    (Object: test)
    (Info: ({'script': <PythonScript instance at 8b7e7e8>,
'context': <Folder instance at 8b82488>, 'container': <Folder
instance at 8b82488>, 'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 4, in test
  File
/usr/lib/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line
198, in __call__
    (Object: excel2pdf)
    (Info: ((<File instance at 8b7ebb8>,), {}, None))
  File /var/lib/zope/Extensions/Notes.py, line 17, in excel2pdf
    (Object: excel)
  File /usr/lib/zope/lib/python/xmlrpclib.py, line 547, in __call__
  File /usr/lib/zope/lib/python/xmlrpclib.py, line 630, in __request
  File /usr/lib/zope/lib/python/xmlrpclib.py, line 585, in request
  File /usr/lib/zope/lib/python/xmlrpclib.py, line 601, in
parse_response
  File /usr/lib/zope/lib/python/xmlrpclib.py, line 371, in close
Fault: (see above)


Any suggestion to correct this problem?



TIA
-- 
                                  ////
                                 (@ @)
---------------------------oOO----(_)----OOo------------------------
        Los pecados de los tres mundos desapareceran conmigo.
Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
--------------------------------------------------------------------