<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: xmlrpc code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 12 Oct 2008 21:05:54 GMT</pubDate>
    <description>DZone Snippets: xmlrpc code</description>
    <item>
      <title>simple xmlrpc with python</title>
      <link>http://snippets.dzone.com/posts/show/643</link>
      <description>code for the client :&lt;br /&gt;&lt;code&gt;&lt;br /&gt;from xmlrpclib import ServerProxy&lt;br /&gt;&lt;br /&gt;print ServerProxy("http://127.0.0.1:9955").get_file()&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;code for the server :&lt;br /&gt;&lt;code&gt;&lt;br /&gt;import SimpleXMLRPCServer&lt;br /&gt;&lt;br /&gt;def get_file():&lt;br /&gt;    return "content"&lt;br /&gt;&lt;br /&gt;server = SimpleXMLRPCServer.SimpleXMLRPCServer(("127.0.0.1", 9955))&lt;br /&gt;server.register_function(get_file)&lt;br /&gt;server.serve_forever()&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;</description>
      <pubDate>Wed, 07 Sep 2005 20:48:09 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/643</guid>
      <author>manatlan (manatlan)</author>
    </item>
  </channel>
</rss>
