Tue, 20 Jul 2004 20:14:27 -0700, na gmane.comp.python.webware, Mark
Phillips napisał(a):

> 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'>
...
> What have I overlooked?

Maybe you did not add your method to exposedMethods()?

def exposedMethods(self):
        return ['getmydoc', 'add']

--
JZ




-------------------------------------------------------
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_idG21&alloc_id040&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to