By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

Interop between C# and Python

P: n/a
i need a easy way to write a Python Service(be it SOAP or JSONRPC or
whatever) but i need to easily access it from C#,i created a web
service in ZSI(which is really easy) like this:

from ZSI import dispatch

def hello():
return "hello"

dispatch.AsServer(port=8080)

simple and easy but how i access it from C#,where is the wsdl for the
service?

is there any easier way to get this kind of interop?(not using a
custom protocol over sockets)

thx,
Uriel Katz

Apr 28 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Apr 27, 6:09 pm, urielka <uriel.k...@gmail.comwrote:
i need a easy way to write a Python Service(be it SOAP or JSONRPC or
whatever) but i need to easily access it from C#,i created a web
service in ZSI(which is really easy) like this:

from ZSI import dispatch

def hello():
return "hello"

dispatch.AsServer(port=8080)

simple and easy but how i access it from C#,where is the wsdl for the
service?

is there any easier way to get this kind of interop?(not using a
custom protocol over sockets)

thx,
Uriel Katz
Use soaplib instead of ZSI. It has better WSDL support which makes it
easier to create client stubs from other languages.

http://trac.optio.webfactional.com/

Ravi Teja.

Apr 28 '07 #2

P: n/a
thx i will try this.

i am also trying XML-RPC,i wrote a basic generator(in python) that
genrate a Interface from the XML-RPC service module,but maybe with
soaplib i don`t need this if i use wsdl as Visual Studio can generate
the code from the wsdl

Apr 28 '07 #3

P: n/a
On Apr 27, 8:25 pm, urielka <uriel.k...@gmail.comwrote:
thx i will try this.

i am also trying XML-RPC,i wrote a basic generator(in python) that
genrate a Interface from the XML-RPC service module,but maybe with
soaplib i don`t need this if i use wsdl as Visual Studio can generate
the code from the wsdl
Typed remoting mechanisms (SOAP, CORBA, ICE etc) tend to be less work
with statically typed languages like C#. Untyped remoting mechanisms
are more convenient to work with dynamic languages (XML-RPC, JSON-RPC
etc). When combining them, typed one are more convenient because
working with typed systems is more convenient in dynamic languages
than it is to work with untyped systems in typed languages. Of course,
if the project is really small, none of this really matters. Pick your
poison.

Ravi Teja.

Apr 28 '07 #4

P: n/a
On Friday 27 April 2007 17:09, urielka wrote:
i need a easy way to write a Python Service(be it SOAP or JSONRPC or
whatever) but i need to easily access it from C#,i created a web
service in ZSI(which is really easy) like this:
You might want to take a look at Thrift too:
http://developers.facebook.com/thrift/

j

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ *ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com

Apr 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.