← Back to team overview

ladon-dev-team team mailing list archive

[Question #214243]: calling a webservice without arguments

 

New question #214243 on ladon:
https://answers.launchpad.net/ladon/+question/214243

Hi, I'm trying to call a webservice which has no input arguments and returns a list of custom type elements . 
I call it like this:

             client.getAllProjectes({}, null,
                        function(resp) {
                                                document.getElementById("demo").innerHTML=resp;
                        }                
                )

I've also tryied null instead of {}.
This is what i'm getting as response:

{"fault": {"lineno": 166, "filename": "dispatcher", "code": "server", "string": "too many values to unpack", "detail": ["Traceback (most recent call last):", "  File \"/usr/local/lib/python2.7/dist-packages/ladon-0.7.5-py2.7.egg/ladon/server/dispatcher.py\", line 159, in dispatch_request", "    result = self.call_method(method,req_dict,tc,export_dict,log_line)", "  File \"/usr/local/lib/python2.7/dist-packages/ladon-0.7.5-py2.7.egg/ladon/server/dispatcher.py\", line 96, in call_method", "    result = getattr(service_class_instance,req_dict['methodname'])(*args)", "  File \"/usr/local/lib/python2.7/dist-packages/ladon-0.7.5-py2.7.egg/ladon/ladonizer/decorator.py\", line 77, in injector", "    res = f(*args,**kw)", "  File \"/var/www/wsgi/gesalight/projecte.py\", line 91, in getAllProjectes", "    for idx,tipus,codi,titol,obs,cli in projs:", "ValueError: too many values to unpack", ""]}, "version": "1.0", "type": "jsonwsp/fault"}

What am i doing wrong?

-- 
You received this question notification because you are a member of
Ladon Developer, which is an answer contact for ladon.