I want to do a very simple webserver in python able to receive XML document over HTTP and then to send as response XML document.
Do you have any example?
just to understand How arrange the work…
many thanks!
UPDATE:
I need something like this:
a client do a post with an xml document:
< request >
< name>plus< /name>
< param>2< /param>
< param>3< /param>
< /request>’
the python server answers:
< response>
< result>OK< /result>
< outcome>5< /outcome>
< /response >
Do you have an example for such kind of things??
You can use XMLRPC :
SimpleXMLRPCServer Example (from the Python Docs)
Server code:
The following client code will call the methods made available by the preceding server: