473,411 Members | 1,995 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,411 software developers and data experts.

XML-RPC, SOAP, and data persistence

I had a play with XML-RPC the other day, and it seemed really simple
to use; which really made an impression on me. But you can't make data
persist on the server (not without rolling your own mechanism, at any
rate). I'm thinking here about thin clients, where the main process
runs on a server.

Is there any free solution to this problem? Is SOAP the answer?
Jul 18 '05 #1
6 2057
On 13 Oct 2003 03:34:47 -0700,
Mark Carter <ca**********@ukmail.com> wrote:
to use; which really made an impression on me. But you can't make data
persist on the server (not without rolling your own mechanism, at any
rate). I'm thinking here about thin clients, where the main process
runs on a server.


I don't follow the connection you're trying to make here. XML-RPC and SOAP
are network protocols used for communication between a client and a server;
what the server or client *do* with the data they receive is up to them and
not part of the protocol definition. You simply have to roll your own
mechanism, or use an existing module such as pickle, ZODB, or an RDBMS.

--amk

Jul 18 '05 #2
ca**********@ukmail.com (Mark Carter) wrote in message news:<d3*************************@posting.google.c om>...
I had a play with XML-RPC the other day, and it seemed really simple
to use; which really made an impression on me. But you can't make data
persist on the server (not without rolling your own mechanism, at any
rate). I'm thinking here about thin clients, where the main process
runs on a server.

Is there any free solution to this problem? Is SOAP the answer?


You can use Pickle or look at Twistedmatrix.com for a full featured solution.

RodrigoB.
Jul 18 '05 #3
"A.M. Kuchling" <am*@amk.ca> wrote in message news:<Rt********************@speakeasy.net>...
On 13 Oct 2003 03:34:47 -0700,
Mark Carter <ca**********@ukmail.com> wrote:
to use; which really made an impression on me. But you can't make data
persist on the server (not without rolling your own mechanism, at any
rate). I'm thinking here about thin clients, where the main process
runs on a server.


I don't follow the connection you're trying to make here. XML-RPC and SOAP
are network protocols used for communication between a client and a server;
what the server or client *do* with the data they receive is up to them and
not part of the protocol definition. You simply have to roll your own
mechanism, or use an existing module such as pickle, ZODB, or an RDBMS.

--amk


I was thinking in terms of thin clients, where you have to deal with
processes which persist after the call. Maybe you have computationally
intensive simulation software which runs on the server. The client is
a simple GUI that sends events to a process that runs on the server.
Pickling and databases don't really help here - although I suppose
that the server process could periodically dump some useful results
for the client to pick up.

XML-RPC appears to deal with remote procedure calls, but doesn't
address process persistence issues. It has a missing piece in the
"distributed computing" puzzle. Maybe SOAP can do better, because it
has objects. That's mu question.
Jul 18 '05 #4
Mark Carter wrote:
XML-RPC appears to deal with remote procedure calls, but doesn't
address process persistence issues. It has a missing piece in the
"distributed computing" puzzle. Maybe SOAP can do better, because it
has objects. That's mu question.


I strongly recommend you to takea look at Pyro,
http://pyro.sourceforge.net

With a few extra lines of code you can make Python
objects in your application remotely accessible as
if they were just regular local objects.

Pyro server objects are long running processes that
sit there and wait till someone invokes methods on
them. You can create per-user objects instances too.

Have a look!

--Irmen de Jong

PS Pyro is only suitable for a 100% python environment.
(both client and server are written in Python).

Jul 18 '05 #5
On 14 Oct 2003 03:20:29 -0700,
Mark Carter <ca**********@ukmail.com> wrote:
XML-RPC appears to deal with remote procedure calls, but doesn't
address process persistence issues. It has a missing piece in the
"distributed computing" puzzle. Maybe SOAP can do better, because it
has objects. That's mu question.


No, SOAP doesn't address persistence any more than XML-RPC does; both
implement remote procedure calls with more or fewer bells and whistles. SOAP
has the additional disadvantage that the spec is very complicated, making it
hard for Python implementations to be up-to-date.

--amk
Jul 18 '05 #6
"A.M. Kuchling" <am*@amk.ca> wrote in message
No, SOAP doesn't address persistence any more than XML-RPC does; both
implement remote procedure calls with more or fewer bells and whistles. SOAP
has the additional disadvantage that the spec is very complicated, making it
hard for Python implementations to be up-to-date.


Thanks. I once saw a thick book on XML at the office, but soon put it
back as there was an aweful lot to it. But looking at XML-RPC, I saw
how easy it was to implement RPCs. It's so fuss-free and generic that
its difficult to imagine wanting to use any other mechanism.

Kinda makes you wonder what the whole point of .Net is.

The above comments are, of course, off-the-cuff remarks.
Jul 18 '05 #7

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

Similar topics

1
by: felipe_azv | last post by:
a got this code in asp to construct a xml , to export it to a url this is de asp code: <% SQL = "Select * from User where CodeUser in ("& request.form("C1" &")" set rs =...
2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
0
by: MarionEll | last post by:
Premier XML Industry Event Slated for Dec. 7-12 in Philadelphia; Presenters Include Adobe, BEA, Microsoft, IBM, Sun, Hewlett-Packard, Oracle Alexandria, Va. Sept. 30, 2003 - IDEAlliance, a...
6
by: yzzzzz | last post by:
Hi, In which cases is the <?xml version="1.0" encoding="UTF-8"?> processing instruction required at the beginning of an XML document, for the document to be valid? e.g. does it depend on the...
0
by: MarionEll | last post by:
XML 2003 Exposition Draws Leading XML Vendors Trade Show, Presentations Allow Companies to Showcase Cutting-edge Solutions Alexandria, Va. - Dec. 1, 2003 - XML 2003, the world's largest XML...
0
by: Steve Whitlatch | last post by:
It may be me, or it may be the Linux implementation of XML Catalogs on slackware. Whichever, please shed some light on this XML Catalog problem. When using the --catalogs option, xmllint resolves...
0
by: MarionEll | last post by:
XML 2004 to Focus on Government XML Applications Expanded Government Track to Highlight XML Applications in U.S. and Abroad; XML.gov, KM.gov, CIO Council, and SICoP to Co-Host Event ...
5
by: laks | last post by:
Hi I have the following xsl stmt. <xsl:for-each select="JOB_POSTINGS/JOB_POSTING \"> <xsl:sort select="JOB_TITLE" order="ascending"/> This works fine when I use it. But when using multiple...
0
by: UncleRic | last post by:
Environment: Mac OS X (10.4.10) on MacBook Pro I'm a Perl Neophyte. I've downloaded the XML::Parser module and am attempting to install it in my working directory (referenced via PERL5LIB env): ...
9
by: Lie | last post by:
Why this generates AttributeError, then not? Python 2.5.2 (r252:60911, Apr 21 2008, 11:17:30) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.