Connecting Tech Pros Worldwide Forums | Help | Site Map

XML-RPC question fault #1

Newbie
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 1
#1: Feb 20 '06
Hi,

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.

Methods
decode_node(node_tuple)
decode_word(word_uid)
display_node(textnode)
returns the pretty print of a node's contents
encode_word(word)
system.listMethods()
system.listMethods() => ['add', 'subtract', 'multiple']
---------------------------------------------------

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

Thanks,

Justin

Reply