Questions tagged [simplexmlrpcserver]

The SimpleXMLRPCServer module provides a basic server framework for XML-RPC servers written in Python. Servers can either be free standing, using SimpleXMLRPCServer, or embedded in a CGI environment, using CGIXMLRPCRequestHandler.

This simple server example exposes a single function that takes the name of a directory and returns the contents. The first step is to create the SimpleXMLRPCServer instance and tell it where to listen for incoming requests (‘localhost’ port 9000 in this case)

class SimpleXMLRPCServer.SimpleXMLRPCServer(addr[, requestHandler[, logRequests[, allow_none[, encoding[, bind_and_activate]]]]) Create a new server instance. This class provides methods for registration of functions that can be called by the XML-RPC protocol. The requestHandler parameter should be a factory for request handler instances; it defaults to SimpleXMLRPCRequestHandler. The addr and requestHandler parameters are passed to the SocketServer.TCPServer constructor. If logRequests is true (the default), requests will be logged; setting this parameter to false will turn off logging. The allow_none and encoding parameters are passed on to xmlrpclib and control the XML-RPC responses that will be returned from the server. The bind_and_activate parameter controls whether server_bind() and server_activate() are called immediately by the constructor; it defaults to true. Setting it to false allows code to manipulate the allow_reuse_address class variable before the address is bound.

https://docs.python.org/2/library/simplexmlrpcserver.html

79 questions
0
votes
2 answers

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…
None
0
votes
2 answers

Python SimpleXMLRPC fails when starting from Crontab but not in local shell

I am really puzzled on this issue. I am using python's SimpleXMLRPC to provide services to a web application. The problem is that when I start my xmlrpc server from the command line everything runs smoothly but when it is started through crontab it…
Cristian
  • 115
  • 1
  • 9
0
votes
1 answer

CORS XMLRPC via mimic.js

Scenario: I have a webpage that needs to make XMLRPC calls from Javascript, and uses mimic.js to do so. The XMLRPC server is written in python, based on SimpleXMLRPCServer. When the webpage and the server are on the same machine, all is well. If…
Scott Hunter
  • 48,888
  • 12
  • 60
  • 101
-1
votes
1 answer

Why do I get an AttributeError on getattr in my execute method?

The code below is used as part of a SimpleXMLRPCServer to receive commands from a Java client I've written. The Java client will just call this execute function and pass in a function name from the CameraAssembler class. from…
TravisChambers
  • 526
  • 4
  • 12
1 2 3 4 5
6