Warning: I have just started with Python 2.3 for MacOS 10.3.4 and Webware 0.8.1.

I have installed Webware and the started AppServer. The standard tests work fine.
>>> import xmlrpclib
>>> server = xmlrpclib.Server('http://localhost/cgi-bin/WebKit.cgi/Examples/ XMLRPCExample')
>>> server.multiply(10,20)


I added a new def of my own to XMLRPCExamples.py and added "import os.path" to the top of the file.

        def getmydoc(self, filepath):
                if not os.path.exists(filepath):
                        # the file just ain't there
                        result = "File not found"
                else:
                        result = "The file is present"
                return result

Then I repeated the test procedure and included
        >>> server.getmydoc('a valid path')

This produced a fault:

xmlrpclib.Fault: <Fault 1: 'Traceback (most recent call last):\n File "WebKit/XMLRPCServlet.py", line 44, in respondToPost\n File "WebKit/RPCServlet.py", line 15, in call\nNotImplementedError: getmydoc\n'>

I tried reloading the server cache and also stop/restart the appserver. No joy.

I have tried a number of modifications of XMLRPCExample.py and none of them are reflected in the test procedure. It is as if the file is not being interpreted/compiled.

What have I overlooked?

Mark Phillips
Mophilly & Associates
On the web at http://www.mophilly.com
On the phone at 619 444-9210



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to