xml-rpc

Add an attachment to Bugzilla using XML-RPC in VBA

蓝咒 提交于 2019-12-12 04:44:43
问题 I am currently developing an Excel macro which allows creating Bugs in a Bugzilla instance. After some trial and error this now turns out to work fine. I wanted to enhance the client so that it's also possible to add screenshots to the newly created bug. The environment I'm using is a little bit tricky: I have to use MS Excel for my task. As Excel does not understand XML-RPC, I downloaded an interface DLL (CookComputing.XmlRpcV2.dll from xml-rpc.net) which makes the XML-RPC interface

XML-RPC to connect confluence in JAVA

你说的曾经没有我的故事 提交于 2019-12-12 04:14:44
问题 I have to use XML-RPC to upload a picture to confluence in JAVA. JAVA CODE import java.util.Vector; import java.util.Hashtable; import helma.xmlrpc.*; import java.util.Arrays; public class test { // The location of our server. private final static String server_url = "http://confluence.xyz.com:8080/rpc/xmlrpc"; public static void main (String [] args) { try { // Create an object to represent our server. XmlRpcClient server = new XmlRpcClient(server_url); Vector<Object> params = new Vector

XML RPC non-object on scalarval

一个人想着一个人 提交于 2019-12-12 04:13:59
问题 I have the following script to login to openERP: <?php include('../xmlrpc/lib/xmlrpc.inc'); $dbname = 'km'; $user = 'admin'; $pwd = 'pass'; $url = 'http://localhost:8069'; // it's demo server url $sock = new xmlrpc_client("http://localhost:8069"); $sock_msg = new xmlrpcmsg('login'); $sock_msg->addParam(new xmlrpcval($dbname, "string")); $sock_msg->addParam(new xmlrpcval($user, "string")); $sock_msg->addParam(new xmlrpcval($pwd, "string")); $sock_resp = $sock->send($sock_msg); if ($sock_resp-

TestLink XML-RPC The call to the xml-rpc client failed

依然范特西╮ 提交于 2019-12-12 03:44:26
问题 I was trying to use the testLink(1.9.14 (Padawan)) xml-rpc in selenium JAVA(testNG) to sync the test result to testlink automatically. I provided the devkey and url what I used for the webdriverJS test. public static String DEVKEY = "e69035750c91d1775900f4ce16dbcfb5"; public static String URL ="http://computername:80/testlink/lib/api/xmlrpc/v1/xmlrpc.php"; When I ran the test suite, I always got the error something like: testlink.api.java.client.TestLinkAPIException: The call to the xml-rpc

Python: Is it possible to set the clientport with xmlrpclib?

三世轮回 提交于 2019-12-12 02:06:44
问题 Is it possible to set the clientport for the xmlrpc-connection? I want to say: Client should make a ServerProxy-object to over a specific client port or pseudocode something like this: serv = xmlrpclib.ServerProxy("server:port","overSpecificClientPort"). 回答1: Try to define a custom transport. This should be something like that: import xmlrpclib, httplib class sourcedTransport(xmlrpclib.Transport): def setSource(self, src): self.src = src def make_connection(self, host): h = httplib

Android OpenErp Search Request XMLRPC

时光总嘲笑我的痴心妄想 提交于 2019-12-12 02:03:57
问题 I am working on an android application which is able to connect with an openerp server and retrive the userid and also the individual fields of the different contacts of that user. below is the code on the things i have done so far public int Search() { searchClient = new XMLRPCClient("http://"+lp.HOST+":"+lp.IN_PORT+lp.URL_XML+lp.URL_OBJECT); try { record = (Array[]) searchClient.call("search",lp.DB_NAME, lp.uid1, lp.PASSWORD, "res.partnet.contact","execute", arguments); } catch(Exception e)

how to pass many2one object in xmlrpc for openerp

隐身守侯 提交于 2019-12-11 22:30:21
问题 I have django as front-end app, where I am saving "res.partner" id relating to django user. Based on that id I am fetching "res.partner" object from openerp. Now I want pass that "res.partner" object to openerp field having many2one relation, using xmlrpc. All other fields along with this object is being saved but not this object. Can you please guide me how to pass object in xmlrpc for openerp 回答1: You need to pass id value (db id field) to the field(many2one). Please check documentation

How to create / update test records on OpenERP 7, using JMeter?

对着背影说爱祢 提交于 2019-12-11 21:06:37
问题 I'm trying to test the load response of an OpenERP module that I've been developing. I've managed to authenticate and read from my model(s) thanks to this tutorial. I'd like now test the creation and update of existing records, but I can't find anywhere the syntax to do such actions. I tried to adapt from the read method, but I'm not able to figure out how the xml is supposed to be built. Is anyone that has already done such testing, willing to share knowledge about how to call the create and

Using webmock to mock XMLRPC client in rspec-rails

一曲冷凌霜 提交于 2019-12-11 19:41:22
问题 I'm trying to spec a client that goes through the following series of calls via XMLRPC: post (https) myservice.auth.login (with params login, password) post (http) myservice.items.list (with sessionid from login) I'm trying to mock these so I don't have to hit a production XMLRPC service, so I did this: require 'spec_helper' describe ItemList do it "hydrates the model" do stub_request(:post, 'secure-api.myservice.com/webservices/xmlrpc/'). with(:body =~ /myservice.auth.login/m). to_return(

How to enable a SAP FM or BAPI for XML-RPC or SOAP access

走远了吗. 提交于 2019-12-11 19:39:02
问题 I just created a Function Module, made it Remote-Enabled, and now I want to invoke it via XML-RPC over HTTP. I'm on SAP NetWeaver App Server ABAP v7 . What other configuration is required in order to expose my FM over XML-RPC? How do I configure the end-point URL and all that? Many thanks. 回答1: There are several explanations on the subject in on SDN, as here and here which describe the generation of a webservice from a function module, and here, which describe the basic webservice