Questions tagged [xmlrpclib]

xmlrpclib is the Python standard library module for transparently handling XML Remote Procedure Call. (Available since v2.2)

xmlrpclib is the Python standard library module for handling XML Remote Procedure Call. It has been available since Python 2.2, and is capable of sending the following types of data:

  • Booleans
  • Numbers
  • Strings
  • Arrays
  • Dicts
  • Dates
  • Binary data

The library's main class, ServerProxy, transparently calls its methods across a network, without having to use any special syntax. For example,

proxy = xmlrpclib.ServerProxy("http://www.example.com/rpc-example")
x = proxy.stdev([1,2,3,4,5])

will, behind the scenes, do this:

  1. Transmit a call to the stdev method (along with arguments, changed into XML RPC format) across the network, to the XML RPC server at "http://www.example.com/rpc-example".

  2. The server will read the command respond with the results of the call.

  3. The proxy object will read the results.

  4. The results will be cast from XML RPC format into a native Python object, and returned.

The Python documentation site hosts the xmlrpclib documentation.

149 questions
0
votes
2 answers

shotgun_api3 not working in PyInstaller exe build

This is my run.py file, it works perfectly fine if you run it manually with something like py -3 run.py import shotgun_api3 I use Python 3 to build the .exe using PyInstaller: py -3 -m PyInstaller run.py The build completes successfully. When I…
Frank
  • 2,109
  • 7
  • 25
  • 48
0
votes
1 answer

sending object (recursive data structures) by XML-RPC in python

I need to send an object through XML-RPC in python. My object consist of composite data type to populate a tree structure: class Node(object): '''Composite data type ''' def __init__(self, pData, pParent=None): self.mData = pData …
zekifh
  • 169
  • 1
  • 2
  • 10
0
votes
1 answer

Not able to find the correct Odoo models

So, I need to add customer, order, order_items(products), products(list of them that company is selling) data using external API to Odoo. I am so far done with customers but I am pretty confused about the models that are needed for the rest.…
Nazrin Guliyeva
  • 145
  • 1
  • 4
  • 14
0
votes
1 answer

How can python script call API define in robotremoteserver library?

my robotremoteserver library defines some API like startenv, stopenv from robotremoteserver import RobotRemoteServer class myLibrary(object): def startenv(self): return "start" def stopenv(self): return "stop" if __name__…
mungayree
  • 313
  • 1
  • 12
0
votes
1 answer

Is there an xml-rpc object for handling 508 errors?

I have a python script that posting content to a Wordpress site via the wordpress_xmlrpc library. This is a piece of my code that sends captured contents to the web site: from wordpress_xmlrpc import Client, WordPressPost from…
user11358845
0
votes
1 answer

django error when connecting with odoo xmlrpc

I can not connect with odoo in any way, this is what I am doing: view.py class UserSerializer(ModelSerializer): class Meta: model = User fields = '__all__' class ProxiedTransport(Transport): def set_proxy(self, host,…
Francisco
  • 539
  • 2
  • 8
  • 25
0
votes
1 answer

Example of XMLRPC interface API with BUGZILLA

How to access Bugzilla bugs with XMLRPC interface. What .py and .XML contains. bugzilla server URL api methods
0
votes
1 answer

405 error not allowed -rtorrent -python

I'm trying to connect to my seedbox so I can send it torrents. But I keep getting this xmlrpclib.ProtocolError: Here's my code import xmlrpclib server_url =…
0
votes
1 answer

print multiple reports using a single method openerp 6.1

I'm trying to print multiple invoices using a single method, i have tried in two ways so far,from within openerp using a button and method called on that and by externally defining a python script that invokes the print externally but the script…
Omi Harjani
  • 737
  • 1
  • 8
  • 20
0
votes
0 answers

Connecting XMLRPCSERVER using socket module

Consider XMLRPCSERVER is running and we want to connect that server and call one method. I know, we can do using xmlrpclib (ServerProxy). But the problem is I want to connect to XMLRPCSERVER using https protocol not http. I have two questions…
Dinesh Pundkar
  • 4,160
  • 1
  • 23
  • 37
0
votes
1 answer

Rails App Interface Architecture Design

I have a rails application that serves as an interface to a hybrid of data. Most of the information I require is retrieved from the command-line program using XML-RPC. Aside from this, I require some additional bit of data which I have no option but…
Jorge Israel Peña
  • 36,800
  • 16
  • 93
  • 123
0
votes
1 answer

How to access properties via RPC

I implemented Pickle-RPC in reference to Python's xmlrpc module. From client side, I can call methods of the instance which are registered to the RPC server. s = ServerProxy(('127.0.0.1', 49152), DatagramRequestSender) s.foo('bar') I also want to…
sira
  • 281
  • 3
  • 10
0
votes
1 answer

Building a server and client with xmlrpc in python

I'm trying to build a client and a server using xmlrpc in python, I HAVE to use a class named FunctionWrapper which has a method and the client use it, the method's name is sendMessage_wrapper(self, message), and the server is declared in another…
0
votes
1 answer

IronPython in C#: No module named xmlrpclib

I am trying to build a web application with an interactive console for IronPython. When I try to import xmlrpclib in IronPython's normal console, it works. However, if I use IronPython inside my C# code, it throws an exception "No module named…
Andy
  • 245
  • 5
  • 18
0
votes
1 answer

How to call decorated functions with XML RPC in Python?

I have a XML RPC server against which I need to register some functions which are decorated. Every time I call those registered functions from client, I get below error: xmlrpclib.Fault: :method "test" is not supported'> Below is the code: Server…
user2819403
  • 37
  • 1
  • 8