XML-RPC was [pygtk] Python and Orbit Examples

Pehr Anderson pehr at linfoo.eink.com
Thu Dec 7 01:41:17 CET 2000


Dear Blair,

I'd recommend doing XML over a simple socket, without relying on
HTTP or SSL as a transport protocol, but that would require you
to include a security model within your XML specification.

It's not a bad idea to handle security separately from transport
unless you are set on the SSL security model.  It would be
perfectly reasonable to do a HTTP POST with your XML querry
and wait for the reply as an XML document, then all you need
is the SSL interface for python.

Python 2.0 includes support for SSL in its web libraries,
or you could try to do something with SSL by calling
lynx using os.popen("lynx --source https://...").read()

        -pehr

On Wed, Dec 06, 2000 at 04:05:03PM -0700, Blair Lowe wrote:
> Sounds cool.
> 
> I found pyXML. at http://download.sourceforge.net/pyxml/.
> 
> Can one send XML to an SSL site with pyXML as well? If so, where is 
> some good docs for this. The version I got (PyXML-0.6.2-2.0.i386.rpm) 
> has not docs, and the overview at 4suite say I need to download 
> something else.
> 
> Are there some better tools for doing this. I started to look at 
> Zope, but it was rather cumbersome and knowing where to start with 
> the documentation was not easy to find either.
> 
> TTYL,
> Blair.
> 
> At 16:53 -0500 2000/12/06, Pehr Anderson wrote:
> >Dear Folks,
> >
> >I would highly recommend using XML-RPC as a minimally complicated
> >way to communicate data between your apps.
> >
> >This might sound complicated but it really only means
> >	1. specify XML encodings for your data, use these throught your code
> >	2. open a socket on the target
> >	3. send an XML query and wait for an XML response
> >	4. parse the response
> >
> >The beautiful thing about XML-RPC (remote proceedure call) is
> >that it is just dirt simple. You open a socket, dump in
> >human readable text, and wait for a human-readable response.
> >Everything gets completely defined somewhere and servers and
> >clients could be coded in *anything*!
> >No complicated tools are required to implement any parts of
> >this system though you might want to look at how others
> >parse XML rather than doing it all by hand.
> >
> >And the best part is you'll have an app that anyone can understand.
> >No secret church of CORBA, COM or other "special tools".
> >XML is directly comprehensible by HUMAN BEINGS and that makes it
> >a sustainable encoding with simple tcp sockets for transport.
> >
> >	-pehr
> >
> >
> >On Tue, Dec 05, 2000 at 06:32:17PM -1200, Rob Brown-Bayliss wrote:
> >>  >or getting it to work with gnome-python, that is a bit more difficult.
> >>
> >>  Sounds a little ominous...
> >>
> >>  What I am doing (or planning at this stage) is to write a POS and Stock
> >>  management system for a small retail chain.
> >>
> >>  Would I be better of giving Pyhton a miss, or ditching the Corba idea?
> >>
> >>  I have very little knowledge of linux programming, though I do have
> >>  years of basic programming on the Amiga (like 18 I think if 
> >>include vic 20 and c64)
> >>  and a few months VC++ on windows.  I have used Linux for 18 months 
> >>now, and played
> >>  a bit with C and a very very little with Python.
> >>
> >>  I am confident I can tackle the task in either language, but I 
> >>know python will be
> >>  quicker to develop with.
> >>
> >>  I had looked to corba as a means of communicating between the 
> >>stores, I could always
> >>  use some form of file transefer, but it's not as elegant or nearly 
> >>as real time.
> >>
> >>
> >>
> >>
> >>  --
> >>
> >>    Rob Brown-Bayliss
> >>   ---======o======---
> >>
> >>    www.ZOOstation.cc
> >>
> >>  _______________________________________________
> >>  pygtk mailing list   pygtk at daa.com.au
> >>  http://www.daa.com.au/mailman/listinfo/pygtk
> >
> >--
> >http://www.python.org/mailman/listinfo/python-list
> 
> Computer Engineering Inc. http://www.compeng.net
> Phone: 780 499 5687 (9 - 5 MST) Fax:   780 435 0693 (24 Hours)




More information about the Python-list mailing list