xmlrpc is very nice, - it's really really simple to setup and easy to use.
One issue though, there are slight differences between the java implementation 
and the python one (if I recall correctly, handling None is done differently), 
I haven't used SOAP, but I'll bet that there are slight differences there as 
well.

xmlrpc in python is done via the xmlrpclib module, examples are in the 
documentation.
In java, you can use the apache package. I think that version 2 of the code was 
simpler.

Ido.

----- Original Message ----
From: Ronnie Maor <[EMAIL PROTECTED]>
To: Simon Robins <[EMAIL PROTECTED]>
Cc: python@linux.org.il
Sent: Wednesday, June 6, 2007 11:32:15 PM
Subject: Re: RPC from Java to Python

a) yes - the code for toy examples would be very helpful as a starting point.

b) do you have other recommendations - XML-RPC? JSON?
 

to clarify my needs, it looks like:

a) I must have a SOAP client in python

b) an RPC protocol for call from Java -> Python, where I control both sides, 
and need something that's easy to use.

 

On 6/7/07, Simon Robins <[EMAIL PROTECTED]> wrote:
For the Python side:

a) steer clear of SOAP

If you decide to carry on anyway...

b) There's a simple example in the 'dive into python' free web book

using the SOAPpy lib
c) If your needs are more complex you'll need the ZSI libraries.

I can give you the code I used in a demo at the python group -
they're toy examples though.


On 7 Jun 2007, at 07:53, Ronnie Maor wrote:


> Does anyone have experience with RPC from Java to Python?
> Trying to get this to work over either XML-RPC or SOAP (prefer
> SOAP) but am having slow start due to lack of experience with any
> of relevant parts :-(

> Specific packages to use, tips, and especially working example code
> would be very very appreciated
>
> thanks
> Ronnie
>










 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

לענות