<div dir="ltr">Yeah right but i don't see something wrong in my server's code. Following is my server's simple code<br><br><span style="color: rgb(0, 0, 153);">import SimpleXMLRPCServer</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">#server = ServerProxy("<a href="http://betty.userland.com">http://betty.userland.com</a>")</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">class AuthenticationFunctions:</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    def s(self):</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">            print "something..."</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000))</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">server.register_instance(AuthenticationFunctions())</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">server.serve_forever()<br><br></span>and following is what i get when i run my client.<br><span style="color: rgb(0, 0, 153);"><br>Traceback (most recent call last):</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">  File "ppkey.py", line 48, in <module></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    caller()</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">  File "ppkey.py", line 45, in caller</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    print server.s()</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    return self.__send(self.__name, args)</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    verbose=self.__verbose</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">  File "/usr/lib/python2.5/xmlrpclib.py", line 1191, in request</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">    headers</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">xmlrpclib.ProtocolError: <ProtocolError for localhost:8000/: 500 Internal Server Error></span><br><br><br><div class="gmail_quote">On Sat, Sep 13, 2008 at 12:37 PM, Fredrik Lundh <span dir="ltr"><<a href="mailto:fredrik@pythonware.com">fredrik@pythonware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Usman Ajmal wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Problem is that when i start client (while the server is already running), i get an error i.e.<br>
Error 500 Internal Server Error<br>
</blockquote>
<br></div>
that's a server error, not a client error.  check the server logs (e.g. error.log or similar).<div><div></div><div class="Wj3C7c"><br>
<br>
</F><br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br></div>