Questions tagged [xml-rpc]

XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism.

XML-RPC is a means of encoding RPC requests in XML and sending them over HTTP. The use of XML as the intermediate language allows nesting of parameters into maps and lists, thus larger structures can be transported. Therefore XML-RPC can be used to transport objects or structures both as input and as output parameters.

In comparison to REST, where resource representations (documents) are transferred, XML-RPC is designed to call methods. You can find the homepage here.

1709 questions
3
votes
1 answer

How to connect or login with Odoo using c# code? And after connect with Odoo how to add custom field to Odoo database from c#?

I have to implement some code in c# for login with Odoo database and give the logged user id please have a look, public interface IOpenErpLogin { [XmlRpcMethod("login")] int login(string dbName, string dbUser, string dbPwd); } But, it give…
3
votes
2 answers

XML-RPC: best options for 64 bit ints?

XML-RPC unfortunately doesn't support 64-bit ints in the official standard. It seems there are several extensions that add this support. Do any of them seem to be more popular or better supported? Which extension do you use? Answers for all…
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
3
votes
3 answers

Alter Odoo XmlRPC context to use a specific language

I need to get the translated data from odoo with a specific language using XMLRPC by default odoo sends data in the default language which is English api.execute_kw(db, uid, pwd, 'res.country', 'search_read', [[]], {'fields': ['name']}) how to add…
rachid el kedmiri
  • 2,376
  • 2
  • 18
  • 40
3
votes
6 answers

Is XML-RPC bad used as a protocol for a public API implementation?

I need to implement a web API for a project I'm working on in this period. I read there are many standard protocols to do it: XML-RPC, SOAP, REST. Apparently, the XML-RPC one is the easiest one to implement and use from what I saw, but I didn't find…
The Coding Monk
  • 7,684
  • 12
  • 41
  • 56
3
votes
2 answers

Wordpress XMLRPC returning blank, but successful

I'm trying to post to WordPress using curl via PHP - I'm posting using the XMLRPC built into Wordpress by default. Posting is successful with the below code, but nothing is returned. I need to know some information about the post, such as it's URL…
Mike
  • 8,767
  • 8
  • 49
  • 103
3
votes
1 answer

How to call an API which is based on XML-RPC specification in C#?

Here is my sample request, login password
Arun Raj R
  • 2,197
  • 3
  • 13
  • 23
3
votes
3 answers

xmlrpc request object error 32300 transport error

$postcontent = array( 'post_type' => 'post', 'post_status' => $post_status, 'post_title' => $post_title, 'post_name' => $post_title, 'post_content' => $post_content, 'post_thumbnail' =>…
Rocky Prajapati
  • 187
  • 1
  • 15
3
votes
1 answer

Programming a distributed application written in C#, Ruby and Java using XML-RPC

I am tasked with writing a distributed event managing tool where each client, either a Ruby, C# or Java Client, synchronises all changes with a list of registered clients. I have to use XML-RPC to achieve the goal. My team and I have written up an…
Eric Tobias
  • 3,225
  • 4
  • 32
  • 50
3
votes
1 answer

Custom HTTP headers with XmlRpcClient

I was wondering if anyone knows how to send custom HTTP headers using an XmlRpcClient in Java? I see a custom header can be set using XmlRpcHttpTransport.setRequestHeader() but I don't see a way of tying this in with the XmlRpcClient itself.
Genesis
  • 8,038
  • 3
  • 21
  • 22
3
votes
1 answer

Update my wiki from Excel macro

I'm currently able to update my confluence wiki page using python script like follows: import sys from xmlrpclib import Server s = Server("https://my.wiki.root/rpc/xmlrpc") token = s.confluence2.login("user", "passwd") page =…
J. Chomel
  • 8,193
  • 15
  • 41
  • 69
3
votes
1 answer

DIsplay all otrs ticket using soap api

How can i display all the otrs tickets using a soap api. Individual ticket can be displayed by passing ticket id in url like this: $url = "https://url/otrs/rpc.pl"; //// URL for OTRS server $username = "username"; //// SOAP username set in…
Sujan Shrestha
  • 1,020
  • 1
  • 18
  • 32
3
votes
1 answer

Adding value to Custom field using xml-rpc

I wanted to create wordpress post using xmlrpc, for that I am using python wordpress-xmlrpc. when i am trying to pass custom field for example price it works well but when I use _price it does not get inserted to the database. does anyone has faced…
iGyan
  • 75
  • 8
3
votes
2 answers

How to insert one2many values in odoo using xml-rpc

Currently I am using odoo 8.0. Actually I am creating the product using the XML-RPC API. Here the code for creating the product from xml-rpc using php. $url = "http://localhost:8069"; $db = "xmlcreate"; $username = "admin"; $password =…
balaraman
  • 397
  • 1
  • 7
  • 21
3
votes
1 answer

Getting error "cannot marshal None" in spite of adding allow_none=True while using XMLRPC in Python

I've tried to create a simple download and upload system using XMLRPC in Python Here is the code for client (name this file as client.py) import sys import xmlrpclib import os def return_pause(): """Used for creating a pause during input""" …
xavier666
  • 87
  • 12
3
votes
3 answers

Update a product field "Quantity On Hand" with xmlrpc

I am trying to update some information on my odoo product with PHP and xmlrpc. This is my code for update product name. $models->execute_kw($db, $uid, $password, 'product.product', 'write', array(array(5), array('name'=>"Newer product…
Adreato
  • 33
  • 1
  • 5