I am calling a web2py app from a GWT app. to date I've packed my data into an URL but I'd like to send JSON data instead.
when I call http://.../init/default/call.json/update and call is thus: def call(): return service() I trace into service() but find that in tools.py that __call__(self) is called that includes the code: arg0 = request.args(0) if arg0 == 'run': ... elif arg0 == 'json': ... But request.args(0) holds ['update'] and not ['json'] Can anyone see where I've mis-stepped? The GWT Java looks like this RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, "http://.../init/default/call.json/update"); try { builder.setHeader("Content-Type", "application/json"); builder.sendRequest(jsonDict.toString(), new RequestCallback() { .... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

