xml-rpc

Method to get product price for a given customer

浪子不回头ぞ 提交于 2021-01-07 03:46:23
问题 I need to retrieve product price via XMLRPC. I am using Product Price Lists so each customer can be assigned a given price list which gives specific discounts based on categories, etc. I am struggling to find which method can be used to retrieve the price for a given product_template id at a given quantity, if that is actually possible. So far I have not been able to try any specific method as I can not identify how can this be achieved without actually creating a sales order. 回答1: The module

what else to do to enable XML-RPC in ejabberd?

元气小坏坏 提交于 2020-06-29 04:01:06
问题 I have configure ejabberd on my server but when i tried to access ejabberd i am getting the error the port 4560/rpc2 is not responding.I have uncomment out XML-RPC in ejabberd.yml file but after uncomment the ejabberd stop working.Here is the code which i uncomment. - ## port: 4560 ## module: ejabberd_xmlrpc ## maxsessions: 10 ## timeout: 5000 ## access_commands: ## admin: ## commands: all ## options: [] i have search almost everything what else i have to install or uncomment to enable this

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

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-14 22:55:48
问题 Here is my sample request, <?xml version=”1.0” encoding=”UTF-8”?> <methodCall> <methodName>login</methodName> <params> <param> <value> <struct> <member> <name>password</name> <value><string>XXXXXXXXXX</string></value> </member> <member> <name>username</name> <value><string>XXXX@XXX.com</string></value> </member> </struct> </value> </param> </params> </methodCall> Here is my sample successful response for the request: <struct> <member> <name>id</name> <value><string>12345</string></value> <

Python: Best method to reload class in XMLRPC Server

安稳与你 提交于 2020-02-05 04:24:06
问题 I have a multit-threaded xmlrpc service running which stores a huge amount of data ~2G in memory. Currently, if I want to update a method the server exposes I have to restart the service. The problem here is that if I restart the service it needs to load all of the data it had in memory back into memory by using a database or using shelved data. I am using methods like this: xmlrpc_getUser(self, uid): return self.users[uid] What I was hoping I could do is just use these methods as a proxy to

What's the difference between XML-RPC and SOAP?

£可爱£侵袭症+ 提交于 2020-01-19 02:00:50
问题 I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated. 回答1: Differences? SOAP is more powerful, and is much preferred by software tool vendors (MSFT .NET, Java Enterprise edition, that sort of things). SOAP was for a long time (2001-2007ish) seen as the protocol of choice for SOA. xml-rpc not so much. REST is the new SOA darling, although it's not a

Bad interaction between Zope2 XML-RPC and AT Image mutator?

▼魔方 西西 提交于 2020-01-15 07:20:42
问题 I am creating a demo for mr.migrator and have run in to an annoying problem, showcased here: # create image proxy = xmlrpclib.ServerProxy(url) # reset data = open('screenshot.png').read() try: proxy.invokeFactory('Image', 'screenshot.png') except xmlrpclib.ProtocolError: print sys.exc_info()[1] except xmlrpclib.Fault: print "The id is invalid - it is already in use." # most likely proxy = xmlrpclib.ServerProxy(url + '/screenshot.png') proxy.setTitle('This is an image') try: proxy.setImage

Magento - Getting the Details of Multiple Products in a Single XML-RPC call

随声附和 提交于 2020-01-04 18:19:49
问题 How do I get all the details of multiple products in a single xml-rpc call.I have the SKU ids of 10 products. I am using the catalog_product.info to retrieve the details of a single product. But I am not able to pass multiple SKU ids or maybe I am doing it the wrong way. Making the same call 10 times takes a long time so that is definitely ruled out. 回答1: You can use multiCall rather than 10 seperate XMLRPC calls. This is explained in the Magento wiki. You could also use catalog_product.items

Python Multiprocessing. How to enqueue XMLRPC ServerProxy objects

元气小坏坏 提交于 2020-01-04 14:38:12
问题 I am trying to send several parallel requests to a XMLRPC server (mosesserver). To launch the XMLRPC call, a ServerProxy object is needed (this object contains the URL of the server, among other things) In serial execution, I can create this object at the beginning of the program (with a call to xmlrpclib.ServerProxy(server_URL)), store it in a variable and use it whenever I need it. But when using a pool of processes, each process needs a different instance of this object. The task of each

Python Multiprocessing. How to enqueue XMLRPC ServerProxy objects

[亡魂溺海] 提交于 2020-01-04 14:37:11
问题 I am trying to send several parallel requests to a XMLRPC server (mosesserver). To launch the XMLRPC call, a ServerProxy object is needed (this object contains the URL of the server, among other things) In serial execution, I can create this object at the beginning of the program (with a call to xmlrpclib.ServerProxy(server_URL)), store it in a variable and use it whenever I need it. But when using a pool of processes, each process needs a different instance of this object. The task of each