Closed (fixed)
Project:
Services
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2008 at 13:02 UTC
Updated:
6 Feb 2008 at 13:51 UTC
Hallo,
first, the Service Modul and the Browser in php works, but when i Access in python, the RPC say 'Could not find the node.'
Here is the simple Python Code;
import xmlrpclib
from pprint import pprint
# The RPC Connection
rpcserver = xmlrpclib.Server("http://www.myserver..../services/xmlrpc")
sessionid = 'XXXXXXXXXXXXXXXXXXX'
# ok, list the Services
pprint(rpcserver.system.listMethods())
['system.multicall',
'system.methodSignature',
'system.getCapabilities',
'system.listMethods',
'system.methodHelp',
'node.load',
'node.save',
'node.delete',
'system.connect',
'system.mail',
'taxonomy.getTree',
'taxonomy.selectNodes',
'user.login',
'user.logout']
# ok, now get a Node
pprint(meerkatsvr.node.load(sessionid,60,""))
'Could not find the node.'
What is the Problem? Why dont work this simple Code?
Why say the rpc call 'Could not find the node.'?
Thanks for help.
Comments
Comment #1
ozon commentedFor example, pprint(rpcserver.taxonomy.getTree(sessionid,1)) give the correct result.
Comment #2
ozon commentedOk, it was my error.
The optional field must contain some values.
Now ist works, sample;
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.