473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Re: How to Implement an XMLRPC Server in Python?

On 10/29/08, Zix <sa*******@yahoo.co.inwrote:
Hello,
I am a newbie to python and trying to get a hang of some of its
advanced features through an application I am building. Basically, I'd
like to build a weather forecasting web service. The clients should be
able to query the service with a location and date and get back the
weather forecast.

After reading a lot on the topic I've settled on the following:
* not using any python frameworks (Django, pylons etc)
* exposing the service through an XMLRPC API using Python 2.4.3
(that's the python version on CentOS 5.2)
Why did you decide to "expose" a web service through xmlrpc instead of
actually exposing it by using a restful web service ?

The links pointed by the previous email should help you, but well, I'm
still surprised on this decision specially because you said you read a
lot about this topic.
* using mod_wsgi ( http://code.google.com/p/modwsgi/ ) instead of
mod_python

So far, I've just created the database design and been focusing on
that. But now I realize I've been procrastinating because I am not
sure how to really go about implementing this (the docs on xml rpc
python module are especially sparse). Please advice.


--
-- Guilherme H. Polo Goncalves
Oct 29 '08 #1
2 1845
Guilherme Polo schrieb:
On 10/29/08, Zix <sa*******@yahoo.co.inwrote:
>Hello,
I am a newbie to python and trying to get a hang of some of its
advanced features through an application I am building. Basically, I'd
like to build a weather forecasting web service. The clients should be
able to query the service with a location and date and get back the
weather forecast.

After reading a lot on the topic I've settled on the following:
* not using any python frameworks (Django, pylons etc)
* exposing the service through an XMLRPC API using Python 2.4.3
(that's the python version on CentOS 5.2)

Why did you decide to "expose" a web service through xmlrpc instead of
actually exposing it by using a restful web service ?

The links pointed by the previous email should help you, but well, I'm
still surprised on this decision specially because you said you read a
lot about this topic.
What is wrong with XMLRPC? I've implemented both kind of systems, and
while REST has it's strengths in a HTML-centric environment, a real RCP
mechanism with built-in type marshalling known to both sides of the
communication is for pure interoperability better.

Diez
Oct 29 '08 #2
Zix
On Oct 29, 11:26*pm, "Daniel Fetchinson" <fetchin...@googlemail.com>
wrote:
These pages might be useful, they include example code:
Thanks Daniel, they do help.

On Oct 29, 11:42*pm, "Guilherme Polo" <ggp...@gmail.comwrote:
Why did you decide to "expose" a web service through xmlrpc instead of
actually exposing it by using a restful web service ?
...
I'm still surprised on this decision specially because you said you
read a lot about this topic.
The basic idea behind this app is for me to get comfortable in
building web applications with Python. The REST architechture, while
sounding simple seemed a bit too much work to implement. I am
comfortable with xmlrpc since I've built xmlrpc clients using Perl. So
in summary, no REST because I felt lazy. :)

(I do like how Google has implemented REST with their GData API -
http://code.google.com/apis/gdata/overview.html - they also offer
GData python client library. A GData "server" in Python would be cool!)
Oct 29 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Juan Carlos CORUÑA | last post by:
Hello all, I'm trying to create a COM Server with an embedded xmlrpc server. Here is way it must work: - The client application (programmed with a COM capable language) instantiates my COM...
1
by: Thomas | last post by:
Hi, Sorry for the stupid subject, but here it goes: I need a simple Webserver which can 1. serve xmlrpc-methods 2. send multicast packets on local network to get response from a similar...
3
by: David Hirschfield | last post by:
An xmlrpc client/server app I'm writing used to be super-simple, but now threading has gotten into the mix. On the server side, threads are used to process requests from a queue as they come in....
7
by: Laszlo Nagy | last post by:
Hello, I'm trying to create a simple XMLRPC server and a client. It is a small application, but the connection needs to be secure. I would like the client to be as thin as possible. Ideally, the...
1
by: fortepianissimo | last post by:
I have a simple xmlrpc server/client written in Python, and the client throws a list of lists to the server and gets back a list of lists. This runs without a problem. I then wrote a simple Java...
7
by: viscanti | last post by:
Hi, I'm trying to create an XMLRPC server using apache + python (cgi). It's not too difficult to configure everything, but I would like to tune it in order to receive up to 2000 calls per minute...
1
by: Sean Davis | last post by:
I would like to set up a server that takes XMLRPC requests and processes them asynchronously. The XMLRPC server part is trivial in python. The job processing part is the part that I am having...
4
by: care02 | last post by:
I have implemented a simple Python XMLRPC server and need to call it from a C/C++ client. What is the simplest way to do this? I need to pass numerical arrays from C/C++ to Python. Yours, Carl
0
by: Daniel Fetchinson | last post by:
On 10/29/08, Zix <saviourms@yahoo.co.inwrote: These pages might be useful, they include example code: http://docs.python.org/library/simplexmlrpcserver.html...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.