xml-rpc

Android, Drupal & DrupalCloud or Android-xmlrpc tutorial?

﹥>﹥吖頭↗ 提交于 2019-12-03 21:30:05
Does anyone know of a good tutorial for any of the above? I need to send data to Drupal from and Android phone. Data is stored in XML but can be converted to JSON easily. Then it needs to be stored in a user's profile. thanks I suggest you use the Drupal Views module to achieve this. It's a very powerful module which allows you to run complex queries on your database and produce output in virtually any format. Here's some information about using Views and Views Datasource module to produce JSON data . If Views Datasource isn't any use, then Views Bonus Pack module may be an alternative. Hope

How to extend Magento API catalog_product.list to include more product information XML-RPC

淺唱寂寞╮ 提交于 2019-12-03 16:42:15
Ok, here is my situation. We are using Magento Store as a online catalog for an iPad App for a Clothing store. There are multiple categories and a few hundred products. From all the standard api calls available to us using XML-RPC we have managed to get our nice iPad application working. It does how ever take way to long to load category listings. The reason for this is the catalog_product.list only returns basic information about a product e.g. id and sku. So we then have to make a new connection for every product on our list to get the other information we need. e.g. Name, Price, Thumb

How to ping automatically to pingomatic in PHP?

ε祈祈猫儿з 提交于 2019-12-03 15:14:22
问题 I want to ping automatically to pingomatic, when ever i update my blog, as it is done by the wordpress. Pingomatic uses the XMLRPC, but I don't know how it works. Can someone help me. 回答1: Seems quite easy at first sight. The form there is a plain HTML form with method=get and I don't see any XMLRPC code around. I'd say you just fill in the form once, click to submit and then copy the resulting URL from the address bar into a PHP http_get() or fopen() . The result page says "Bookmark this

Magento Cart API not showing prices

偶尔善良 提交于 2019-12-03 13:29:12
I am attempting to use the Magento Enterprise 1.10 XML-RPC API to handle cart/catalog functions outside of the Magento installation. The issue that I am having is when I add to cart. I can connect just fine to the API endpoint, login, and retrieve data. The following is the code that I am using to discover the workings of the Magento API. <?php require $_SERVER['DOCUMENT_ROOT'].'/Zend/XmlRpc/Client.php'; $url = 'http://mymagento.com/api/xmlrpc'; $user = 'apiuser'; $pass = 'apipass'; $proxy = new Zend_XmlRpc_Client( $url ); $sess = $proxy->call( 'login', array( $user, $pass ) ); $cartId =

How to base64 encode a PDF file in Python

五迷三道 提交于 2019-12-03 09:56:56
问题 How should I base64 encode a PDF file for transport over XML-RPC in Python? 回答1: If you don't want to use the xmlrpclib's Binary class, you can just use the .encode() method of strings: a = open("pdf_reference.pdf", "rb").read().encode("base64") 回答2: Actually, after some more digging, it looks like the xmlrpclib module may have the piece I need with it's Binary helper class: binary_obj = xmlrpclib.Binary( open('foo.pdf').read() ) Here's an example from the Trac XML-RPC documentation import

Is there a java api to access bugzilla? [closed]

余生颓废 提交于 2019-12-03 09:53:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Is there a (standalone!) java api which wraps the XML-RPC interface to bugzilla? I don't want to program my own api for it, and I can't actually find a library which does this (and only this). Update: I'm looking for something like this http://oss.dbc.dk/bugzproxy/ only written in Java 回答1: I know this is a bit

Can XML-RPC methods be called by name (as strings) in Python?

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In python, calling XML-RPC methods involves invoking methods on a proxy object: from xmlrpclib import ServerProxy print ServerProxy('https://example.com/rpc').api.hello_there('John') In some other languages, like perl, you pass your method name as a method parameter. use Frontier::Client; $p = Frontier::Client->new(url => 'https://example.com/rpc'); $result = $p->call('api.hello_there', 'John'); print $result; Is there a way to invoke XML-RPC methods by name, as strings, in Python? 回答1: Just use getattr , as with any Python object. func =

Providing an XML-RPC service from a ruby on rails application?

北战南征 提交于 2019-12-03 09:02:39
I'm looking at the feasibility of providing an XML-RPC service from an existing ruby on rails application. I'm hoping that I can do it by just implementing some additional controller methods and serving it through my existing apache/passenger setup. Is this approach plausible, or will XML-RPC require a separate web server? JasonTrue Assuming Rails 3: There are two or three basic approaches to offering XMLRPC services from a rails application. The first is to use Rack middleware (gem 'rack-rpc' - https://github.com/datagraph/rack-rpc ) that supports this, which, in theory should be possible to

SHA2 password storage with Java

依然范特西╮ 提交于 2019-12-03 09:00:25
I'm attempting to make a XML-RPC call that requires HmacSHA-256 hashing of a particular string. I'm currently using the Jasypt library with the following code: StandardPBEStringEncryptor sha256 = new StandardPBEStringEncryptor(); sha256.setPassword(key); sha256.setAlgorithm("PBEWithHmacSHA2"); On trying to use sha256.encrypt(string) I get this error: Exception in thread "main" org.jasypt.exceptions.EncryptionInitializationException: java.security.NoSuchAlgorithmException: PBEWithHmacAndSHA256 SecretKeyFactory not available at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.initialize

xml-rpc request using curl?

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a Magento server that has various methods exposed through the API. I am prototyping various client-side modules to call this API. This has been successful so far. I just started using curl to push xml through. Surprisingly, I'm unable even to get past the API login. Here's what I am doing (the 'login' method takes two strings, the username and password). curl --data-urlencode @xmlrpc http://domain/api/xmlrpc contents of file xmlrpc <?xml version="1.0"?> <methodCall> <methodName>login</methodName> <params> <param> <value>apiUser</value