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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top