469,931 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,931 developers. It's quick & easy.

XML-RPC question fault #1


I'm trying to access ConceptNet's XMLRPC server but I cannot seem to get the PHP client-side method written correctly. :-(

I send out the call which includes:
Expand|Select|Wrap|Line Numbers
  1. $message = new xmlrpcmsg('system.listMethods()');
  2. $result = $server->send($message, $timeout);
And part of what I get back:

XML-RPC Fault #1: exceptions.Exception:method "system.listMethods()" is not supported

The xmlrpc file looks like:
Expand|Select|Wrap|Line Numbers
  1. import sys
  2. import ConceptNetDB
  3. import DocXMLRPCServer
  4. pred_filename = "predicates.txt"
  5. if len(sys.argv)>0 and sys.argv[-1][-1*len('.py'):].lower()!='.py':
  6.     pred_filename = sys.argv[-1]
  7. print "Syntax: python ConceptNetXMLRPCServer.py [predicates_file]"
  8. print "Loading Predicates from %s..."%pred_filename
  9. c =ConceptNetDB.ConceptNetDB(None,pred_filename)
  10. print "Starting XML-RPC Server"
  11. port = 8000
  12. xmlrpc = DocXMLRPCServer.DocXMLRPCServer(('',port))
  13. print "Now serving on localhost port %s!"%str(port)
  14. xmlrpc.register_introspection_functions()
  15. xmlrpc.register_instance(c)
  16. #xmlrpc.register_instance(c.nltools)  -a post said to comment this out
  17. xmlrpc.serve_forever()
Part of the server documentation looks like:
XML-RPC Server Documentation

This server exports the following methods through the XML-RPC protocol.

returns the pretty print of a node's contents
system.listMethods() => ['add', 'subtract', 'multiple']

Any idea how I get rid of the: XML-RPC Fault #1: exceptions.Exception:method "*" is not supported ?


Feb 20 '06 #1
0 1953

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Phil Powell | last post: by
8 posts views Thread by Robert J Egan | last post: by
reply views Thread by Stylus Studio | last post: by
5 posts views Thread by laks | last post: by
9 posts views Thread by Lie | last post: by
10 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
reply views Thread by Jacker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.