User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 392,009 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,236 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:

xmlrpc help

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

Help xmlrpc help

  #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
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 10:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC