simplexmlrpcserver

Using **kwargs with SimpleXMLRPCServer in python

I have a class that I wish to expose as a remote service using pythons SimpleXMLRPCServer. The server startup looks like this: server = SimpleXMLRPCServer((serverSettings.LISTEN_IP,serverSettings.LISTEN_PORT)) service = Service() server.register_instance(service) server.serve_forever() I then have a ServiceRemote class that looks li...

Running SimpleXMLRPCServer in separate thread and shutting down

I have a class that I wish to test via SimpleXMLRPCServer in python. The way I have my unit test set up is that I create a new thread, and start SimpleXMLRPCServer in that. Then I run all the test, and finally shut down. This is my ServerThread: class ServerThread(Thread): running = True def run(self): self.server = #Cr...

Sending an exception on the SimpleXMLRPCServer

I'm trying to raise an exception on the Server Side of an SimpleXMLRPCServer; however, all attempts get a "Fault 1" exception on the client side. RPC_Server.AbortTest() File "C:\Python25\lib\xmlrpclib.py", line 1147, in call return self.send(self.__name, args) File "C:\Python25\lib\xmlrpclib.py", line 1437, in __request verb...

can SimpleXMLRPCServer listen on multiple addresses?

I have two IPs mapping to the machine, and I was wondering how I can have one python xmlrpc server listening on both IPs (same port), like you could do with Apache. Thank you, ...

IP address of client in Python SimpleXMLRPCServer ?

I have a SimpleXMLRPCServer server (Python). How can I get the IP address of the client in the request handler? This information appears in the log. However, I am not sure how to access this information from within the request handler. ...

SimpleXMLRPCServer, wxPython and Thread - Howto Stop?

Here is an example program that illustrates my problem. The program starts a wxPython application and starts a SimpleXMLRPCServer in a thread. This all works fine. My problem is that I can't shut down the SimpleXMLRPCServer thread because it is blocked on the handle_request() call. I am developing on a Windows XP machine (I don't kno...

How to debug Apache XML-RPC client with Python server

I am writing xmlrpc codes to communicate between Apache XML-RPC client and a Python SimpleXMLRPCServer. I have difficulty debugging it, because I can't find a way to see the request XML/response XML. Are there anyway I can see it dump to console or logged in file? ...

Exception handling with simplexmlrpcserver - python.

Hello, Is there any way to handle connection errors with simplexmlrpcserver module? I want to catch any errors within my xmlrpc server to handle them in my own way instead of printing the traceback to stdout. ...

SimpleXmlRpcServer _sock.rcv freezes after thousands of requests

Hi there, I'm serving requests from several XMLRPC clients over WAN. The thing works great for, let's say, a period of one day (sometimes two), then freezes in socket.py: data = self._sock.recv(self._rbufsize) _sock.timeout is -1, _sock.gettimeout is None There is nothing special I do in the main thread (just receiving XMLRPC calls)...

Combine SimpleXMLRPCServer and BaseHTTPRequestHandler in Python

Because cross-domain xmlrpc requests are not possible in JavaScript I need to create a Python app which exposes both some HTML through HTTP and an XML-RPC service on the same domain. Creating an HTTP request handler and SimpleXMLRPCServer in python is quite easy, but they both have to listen on a different port, which means a different ...

How to get IP when using SimpleXMLRPCDispatcher in Django

Having a code inspired from http://code.djangoproject.com/wiki/XML-RPC : from SimpleXMLRPCServer import SimpleXMLRPCDispatcher from django.http import HttpResponse dispatcher = SimpleXMLRPCDispatcher(allow_none=False, encoding=None) # Python 2.5 def rpc_handler(request): """ the actual handler: if you setup your urls.py pr...

I want to ignore certificate verification, where and how to do it with XMLRPC web service??

I am accessing a web service and getting this error when trying to connect( web service is XMLRPC and I am using wordpress xmlrpc source code for request and handling repsonse): Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “**.org” whic...