Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Aug 2007
Posts: 6
Reputation: xiyann is an unknown quantity at this point 
Solved Threads: 0
xiyann's Avatar
xiyann xiyann is offline Offline
Newbie Poster

xmlrpc help

 
0
  #1
Aug 12th, 2007
hi there,
i'm trying to connect a python server to vb.net using xmlrpc. i've read all the xmlrpc.net materials in http://www.xml-rpc.net/ but i dun reli understand how xmlrpc.net works (i'm a noob in XML and SOAP ) i'm given this xmlrpc server code in python and i wish to connect it to vb.net.

  1. import sys
  2. import ConceptNetDB
  3. import DocXMLRPCServer
  4. config_filename = 'ConceptNet.ini'
  5. if len(sys.argv)>0 and sys.argv[-1][-1*len('.py'):].lower()!='.py':
  6. config_filename = sys.argv[-1]
  7. print "Syntax: python ConceptNetXMLRPCServer.py [configuration_file]"
  8. print "Determining which knowledge libraries to load from %s..."%config_filename
  9. c =ConceptNetDB.ConceptNetDB(None,config_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.nltools)
  16. xmlrpc.register_function(c.get_context)
  17. xmlrpc.register_function(c.get_analogous_concepts)
  18. xmlrpc.register_function(c.get_all_projections)
  19. xmlrpc.register_function(c.project_affective)
  20. xmlrpc.register_function(c.project_consequences)
  21. xmlrpc.register_function(c.project_details)
  22. xmlrpc.register_function(c.project_spatial)
  23. xmlrpc.serve_forever()

can someone explain to me how can i do dat in layman's term?
thank u very much
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC