944,198 Members | Top Members by Rank

Aug 12th, 2007
0

xmlrpc help

Expand Post »
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.

python Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xiyann is offline Offline
6 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: problems understanding soap
Next Thread in RSS, Web Services and SOAP Forum Timeline: SOAP & Numara Footprints





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC