Python script xml-rpc to C# xml-rpc script

Y

Ymtrader

If anyone is fluent in python as well as C# using the cook computing xml-rpc.net library I could really use some help. I have been trying to write a C# program to access upcdatabase.com without much luck. I have a working python script. Would anyone be willing to show me the C# equivalent to this python script might be. Thank you

#!/usr/bin/env python
#
#

import sys
from xmlrpclib import ServerProxy, Error

rpc_key = 'enter rpc_key here'

if __name__=='__main__':
if len(sys.argv) != 2:
print 'Usage: fetchupc.py <upc>'
exit
else:
s = ServerProxy('http://www.upcdatabase.com/xmlrpc')
params = { 'rpc_key': rpc_key, 'upc': sys.argv[1] }
print s.lookup(params)
 
A

Adam Tauno Williams

If anyone is fluent in python as well as C# using the cook computing
xml-rpc.net library I could really use some help. I have been trying
to write a C# program to access upcdatabase.com without much luck.

Yes, I've used both.
have a working python script. Would anyone be willing to show me the
C# equivalent to this python script might be. Thank you

If you ask on an appropriate forum - yes. [the cook computing forum or
the Mono list]. This is *not* a Python question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top