Am Fri, 23 Jul 2004 22:47:37 -0700 schrieb June Moore:
Hi,
I would like to write a script in Python that takes XML request, query
MySQL database and sends XML requests back.
Can anyone here suggest any relevant links / tutorials on the web that
are related to allow me to do this?
Hi,
Try to break your problem into several smaller ones.
1. Parse the request (not http, just a normal file)
I suggest sax: import xml.sax
2. Learn how to handle a HTTP-Request
(module cgi and cgitb)
3. Try to make queries with mysql
4. Create valid XML
You can use fd.write() or a library.
Good luck,
Thomas